@revathskumar/babel-plugin-elm

0.2.0-beta1 • Public • Published

babel-plugin-elm

Babel plugin that compile elm code embedded in your app

This is a first draft.

How to use ?

Probably better just to use it in dev and use elm-webpack-loader for bundling.

// .babelrc
{
  // ...
  "env": {
    "test": {
      "plugins": [ "babel-plugin-elm" ]
    }
  }
}

Future features !?

  • No watch capability (can be workarounded with babel-watch, mocha --watch, etc)
  • No cache

Under the hood

The plugin compile the elm code with node-elm-compiler in a temporary file and change the path to import for the temporary file.

Contributions

Nothing less than very welcome :)

Readme

Keywords

Package Sidebar

Install

npm i @revathskumar/babel-plugin-elm

Weekly Downloads

2

Version

0.2.0-beta1

License

GPL-3.0

Unpacked Size

39.1 kB

Total Files

4

Last publish

Collaborators

  • revathskumar