A plugin for Vite enables you to compile an Elm application/document/element
options.compiler: { compile: (targets: string[]) => Promise<string> }
https://github.com/hmsk/vite-plugin-elm/compare/v3.1.0-0...v3.1.0-1
compiler.command
on plugin options
targets: string[]
and returns a command to show compilation's result in stdout{ compiler: { command: (targets) => `npx elm-optimize-level2 -O3 --output elm.js ${target[0]} > /dev/null && cat elm.js`
https://github.com/hmsk/vite-plugin-elm/compare/v3.0.1...v3.1.0-0
nodeElmCompilerOptions
on plugin's options 25afae6https://github.com/hmsk/vite-plugin-elm/compare/v3.0.0...v3.0.1
This plugin doesn't support v2, v3, and v4 of vite anymore.
Follow vite's migration guide for updating your vite project
The package now provides only ESM build as a "type": "module"
package. Doesn't provide any CJS anymore. Follow vite's guide to deprecate CJS.
If you are using the plugin in an ESM project already (despite only CJS being provided), you need to update your vite's config:
import { defineConfig } from 'vite'
import elmPlugin from 'vite-plugin-elm'
export default defineConfig({
+ plugins: [elmPlugin()]
- plugins: [elmPlugin.plugin()]
})
find-up
from ^5 to ^7https://github.com/hmsk/vite-plugin-elm/compare/v2.9.0...v3.0.0
https://github.com/hmsk/vite-plugin-elm/compare/v3.0.0-1...v3.0.0-2
https://github.com/hmsk/vite-plugin-elm/compare/v3.0.0-0...v3.0.0-1
https://github.com/hmsk/vite-plugin-elm/compare/v2.9.0...v3.0.0-0
nodeElmCompilerOptions
-Update devDependencieshttps://github.com/hmsk/vite-plugin-elm/compare/v2.8.0...v2.9.0
https://github.com/hmsk/vite-plugin-elm/compare/v2.9.0-beta.1...v2.9.0-beta.2
nodeElmCompilerOptions
https://github.com/hmsk/vite-plugin-elm/compare/v2.8.0...v2.9.0-beta.1