一覧へ戻る
ulisses-alves/rollup-plugin-elm(新しいタブで開きます)
主要言語: JavaScript
Import .elm files as ES6 modules.
- star 数
- 16
- watcher 数
- 1
- fork 数
- 1
- issue 数
- 5
- 最終更新
- 2023/03/04
主要言語: JavaScript
Import .elm files as ES6 modules.
Import .elm (Elm 0.19) files as ES6 modules.
import Elm from './App.elm' const root = document.getElementById('app') const app = Elm.App.init({ node: root })
import elm from 'rollup-plugin-elm' export default { input: 'src/index.js', output: { file: `dist/bundle.js`, format: 'iife' }, plugins: [ elm({ exclude: 'elm_stuff/**' }) ] }
Check the examples/ folder for a complete example.
{ include: [], exclude: [], compiler: { // Enable/Disable compiler optimizations (default: false) optimize: true, // Enable/Disable debug mode (default: false) debug: false, // Path to Elm executable (default: elm) pathToElm: path.resolve(__dirname, 'node_modules/elm/bin/elm') } }
Elm 0.18 is supported up to version 1.0.6 of this package. It can installed by running:
npm install --save-dev rollup-plugin-elm@1.0.6