Parcel 2: Elm transform

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

1 possible answer(s) on “Parcel 2: Elm transform