Vite Plugin Elm Versions Save

A plugin for Vite enables you to compile an Elm application/document/element

v3.1.0-1

1 month ago
  • Update options for custom compilation
    • To options.compiler: { compile: (targets: string[]) => Promise<string> }
  • Update devDependencies

https://github.com/hmsk/vite-plugin-elm/compare/v3.1.0-0...v3.1.0-1

v3.1.0-0

1 month ago
  • 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`
      
  • Update devDependencies

https://github.com/hmsk/vite-plugin-elm/compare/v3.0.1...v3.1.0-0

v3.0.1

1 month ago
  • Correct the unintentional necessity of nodeElmCompilerOptions on plugin's options 25afae6
  • Update devDependencies

https://github.com/hmsk/vite-plugin-elm/compare/v3.0.0...v3.0.1

v3.0.0

4 months ago

💥 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

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

https://github.com/hmsk/vite-plugin-elm/compare/v2.9.0...v3.0.0

v3.0.0-2

4 months ago
  • Update vite to 5.0.12 to follow security update

https://github.com/hmsk/vite-plugin-elm/compare/v3.0.0-1...v3.0.0-2

v3.0.0-1

4 months ago
  • follow updates of typings of acorn
  • refine README 147e091

https://github.com/hmsk/vite-plugin-elm/compare/v3.0.0-0...v3.0.0-1

v3.0.0-0

4 months ago
  • Provide only ESM module (breaking)
  • Require vite 5+ (breaking)
  • Update major version of find-up (breaking)
  • Fix config for ESLint, Prettier

https://github.com/hmsk/vite-plugin-elm/compare/v2.9.0...v3.0.0-0

v2.9.0

4 months ago
  • Support vite@5
  • Accept raw options for node-elm-compiler via nodeElmCompilerOptions -Update devDependencies

https://github.com/hmsk/vite-plugin-elm/compare/v2.8.0...v2.9.0

v2.9.0-beta.2

5 months ago
  • Allow vite@2+ for peerDependencies
  • Update devDependencies

https://github.com/hmsk/vite-plugin-elm/compare/v2.9.0-beta.1...v2.9.0-beta.2

v2.9.0-beta.1

1 year ago
  • Accept raw options for node-elm-compiler via nodeElmCompilerOptions
    • Closes #461 and #358
  • Update devDependencies

https://github.com/hmsk/vite-plugin-elm/compare/v2.8.0...v2.9.0-beta.1