A plugin for Vite enables you to compile an Elm application/document/element
OTHER License
options.compiler: { compile: (targets: string[]) => Promise<string> }
https://github.com/hmsk/vite-plugin-elm/compare/v3.1.0-0...v3.1.0-1
Published by hmsk 6 months ago
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
Published by hmsk 9 months ago
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.plugin()]
- plugins: [elmPlugin()]
})
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
https://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
elm.json
#354
find-up
?raw
option is given #411devDependencies
https://github.com/hmsk/vite-plugin-elm/compare/v2.8.0-beta.4...v2.8.0-beta.5
prepare
script for installation via git #418 thanks @mattpolzinhttps://github.com/hmsk/vite-plugin-elm/compare/v2.8.0-beta.3...v2.8.0-beta.4
*.elm?raw
import #411 thanks to @klaftertiefhttps://github.com/hmsk/vite-plugin-elm/compare/v2.8.0-beta.2...v2.8.0-beta.3
https://github.com/hmsk/vite-plugin-elm/compare/v2.8.0-beta.1...v2.8.0-beta.2
find-up
https://github.com/hmsk/vite-plugin-elm/compare/v2.7.2...v2.8.0-beta.1
https://github.com/hmsk/vite-plugin-elm/compare/v2.7.0...v2.7.2
(v2.7.1 is unpublished since unintentional build is bundled)
https://github.com/hmsk/vite-plugin-elm/compare/v2.6.1...v2.7.0
https://github.com/hmsk/vite-plugin-elm/compare/v2.7.0-beta.2...v2.7.0-beta.3