Parcel 2: Elm transform
See original GitHub issueCreate 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:
- Created 4 years ago
- Reactions:21
- Comments:20 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is anyone working on this currently? What’s the status of the implementation?
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…