vite-plugin-elm

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

OTHER License

Downloads
23.4K
Stars
198
Committers
17
vite-plugin-elm - Latest Release

Published by hmsk 4 months ago

  • Update devDependencies
  • Correct the path for typings for the package #684 Thanks @anmolitor
vite-plugin-elm -

Published by hmsk 6 months 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

vite-plugin-elm - Pilot for naive approach to accept compilations by command line

Published by hmsk 6 months 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

vite-plugin-elm -

Published by hmsk 6 months 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

vite-plugin-elm - v3.0.0: Go ESM

Published by hmsk 9 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.plugin()]
-   plugins: [elmPlugin()]
})

💽 Other Changes

  • Update dependency find-up from ^5 to ^7

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

vite-plugin-elm -

Published by hmsk 9 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

vite-plugin-elm -

Published by hmsk 9 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

vite-plugin-elm -

Published by hmsk 9 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

vite-plugin-elm -

Published by hmsk 10 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

vite-plugin-elm -

Published by hmsk 10 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

vite-plugin-elm -

Published by hmsk over 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

vite-plugin-elm -

Published by hmsk over 1 year ago

  • Support vite@4
  • Have a better strategy to find elm.json #354
    • Add a new dependency for find-up
  • Have a better strategy to build asset's path #407
  • Ignore elm files if ?raw option is given #411
  • Be kind for installation with Git #418
  • Update devDependencies
vite-plugin-elm -

Published by hmsk over 1 year ago

  • Fix test to follow the new naming convention for hash on generated asset's path
  • Update devDependencies

https://github.com/hmsk/vite-plugin-elm/compare/v2.8.0-beta.4...v2.8.0-beta.5

vite-plugin-elm -

Published by hmsk over 1 year ago

  • Update devDependencies
  • Run build on prepare script for installation via git #418 thanks @mattpolzin

https://github.com/hmsk/vite-plugin-elm/compare/v2.8.0-beta.3...v2.8.0-beta.4

vite-plugin-elm -

Published by hmsk over 1 year ago

  • Update devDependencies
  • Avoid handling of *.elm?raw import #411 thanks to @klaftertief

https://github.com/hmsk/vite-plugin-elm/compare/v2.8.0-beta.2...v2.8.0-beta.3

vite-plugin-elm -

Published by hmsk almost 2 years ago

  • update devDependencies
  • fix the error on importing an asset with unexpected resource path thanks to @notgne2 #407

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

vite-plugin-elm -

Published by hmsk almost 2 years ago

  • Update devDependencies
  • Use the closest elm.json to each import 81a56ef #354 thanks to @ccapndave
    • Add a dependency to find-up
  • Allow vite@v4 on peerDependencies

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

vite-plugin-elm -

Published by hmsk about 2 years ago

  • Update devDependencies
  • Make HMR works on Windows #287 Thanks! @andreasewering

https://github.com/hmsk/vite-plugin-elm/compare/v2.7.0...v2.7.2

(v2.7.1 is unpublished since unintentional build is bundled)

vite-plugin-elm -

Published by hmsk about 2 years ago

  • Update devDependencies
  • Support HMR in combined importing
  • Support Vite 3

https://github.com/hmsk/vite-plugin-elm/compare/v2.6.1...v2.7.0

vite-plugin-elm -

Published by hmsk over 2 years ago

  • Update devDependencies
  • Accept Vite 3
    • Thanks @lindsaykwardell ✨

https://github.com/hmsk/vite-plugin-elm/compare/v2.7.0-beta.2...v2.7.0-beta.3

Package Rankings
Top 3.11% on Npmjs.org
Top 9.55% on Proxy.golang.org
Badges
Extracted from project README
npm npm next channel GitHub Workflow Status
Related Projects