question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parcel 2: Elm transform

See original GitHub issue

Create the @parcel/transformer-elm package in packages/transforms/elm. This package is a Parcel 2 transform plugin for Elm. It should be based on the ElmAsset from Parcel 1.

The @parcel/transformer-elm package is responsible for the following things:

  • Ensuring the elm compiler is installed as a dependency
  • Creating elm.json if it doesn’t exist, or loading the existing config.
  • Transforming Elm to JavaScript
  • Collecting dependencies
  • Injecting elm-hot runtime
  • Compressing using the recommended terser settings? Possibly move this to an optimizer plugin if it makes sense to run it over the entire bundle rather than individual assets.

Related issues that could possibly also be fixed: #3188 #2818 #2508

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:21
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
ChristophPcommented, Feb 13, 2020

Is anyone working on this currently? What’s the status of the implementation?

1reaction
mischniccommented, Dec 9, 2020

You might need to do something like this: https://github.com/parcel-bundler/parcel/discussions/5194#discussioncomment-86432 so that TS knows about *.elm files…

Read more comments on GitHub >

github_iconTop Results From Across the Web

@parcel/transformer-elm NPM | npm.io
Automatically transforms modules using Babel, PostCSS, and PostHTML when needed - even node_modules . ✂️ Zero configuration code splitting using dynamic ...
Read more >
Elm - Parcel
Elm is a functional language with an advanced type system that ensures correctness of your code and prevents confusing runtime errors. With its...
Read more >
Parcel v2 plugin for converting raw SVG to Elm - Show and Tell
I have some ideas for how to animate svgs using various elm packages. To do this, I need to transform raw svgs made...
Read more >
@parcel/transformer-elm - npm
Latest version: 2.8.2, last published: 10 days ago. Start using @parcel/transformer-elm in your project by running `npm i ...
Read more >
Devon Govett (@devongovett) / Twitter
Parcel 2 brings the zero configuration experience from Parcel 1, and makes it scalable and ... A template starter with bare bones Elm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found