Skip to content

v3.1.0

Choose a tag to compare

@hmsk hmsk released this 08 Nov 23:10
· 78 commits to main since this release
v3.1.0
5c974ec

✨ Features

  • Support Platform.worker, including in Web Workers #861 #869 Thanks @galdiuz
    • Vite builds Web Workers with their own plugins, so add the plugin to worker.plugins for production builds. See README
  • Accept a custom compilation via compiler.compile, e.g. for elm-optimize-level-2 #646 Thanks @robinheghan for the request
    • { compiler: { compile: (targets: string[]) => Promise<string> } }. See README
  • Support Elm 0.19.2, which emits U+2028/U+2029 in string literals #864 Thanks @lydell, and @aaaaargZombies for testing it

🐛 Bug Fixes

  • ?with= could drop an accompanying file from a production build by resolving it from a wrong importer #869 Thanks @klaftertief for #846
    • A path given via ?with= which can't be resolved now fails the build instead of being dropped silently
  • The HMR code for an Elm module without local imports was invalid, which broke the dev server on Vite 8 #863 Thanks @adauguet
  • HMR threw a ReferenceError once an Elm node had been removed from the page #861
  • Correct the path for typings for the package #684 Thanks @anmolitor

📦 Package

  • peerDependencies.vite is now ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0. v3 is tested with Vite 5 and works with 6–8 except ?inline assets on the dev server. Full support for Vite 6+ comes in v4
  • Stop publishing compiled unit tests

🔧 Development

  • Update the toolchain (TypeScript 6, ESLint 10, Vitest 3, Cypress 16) and CI (Node 22/24/26) #867 Thanks @zkrzyzanowski for #866

v3.0.1...v3.1.0