Releases: hmsk/vite-plugin-elm
Releases · hmsk/vite-plugin-elm
v3.1.0-2
v3.1.0-1
- Update options for custom compilation
- To
options.compiler: { compile: (targets: string[]) => Promise<string> }
- To
- Update devDependencies
Pilot for naive approach to accept compilations by command line
- Accepts
compiler.command
on plugin options- The option expects a function which takes
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`
- The option expects a function which takes
- Update devDependencies
v3.0.1
v3.0.0: Go ESM
💥 Breaking Changes
Require vite@5+
This plugin doesn't support v2, v3, and v4 of vite anymore.
Follow vite's migration guide for updating your vite project
- https://vitejs.dev/guide/migration.html#migration-from-v4
- https://v4.vitejs.dev/guide/migration.html
- https://v3.vitejs.dev/guide/migration.html
Provide only ESM build
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()]
})
💽 Other Changes
- Update dependency
find-up
from ^5 to ^7
v3.0.0-2
- Update vite to 5.0.12 to follow security update
v3.0.0-1
v3.0.0-0
- Provide only ESM module (breaking)
- Require vite 5+ (breaking)
- Update major version of find-up (breaking)
- Fix config for ESLint, Prettier
v2.9.0
- Support vite@5
- Accept raw options for node-elm-compiler via
nodeElmCompilerOptions
-Update devDependencies
v2.9.0-beta.2
- Allow vite@2+ for peerDependencies
- Update devDependencies