Skip to content

Releases: adonisjs/vite

Update dependencies

27 Sep 13:47
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release

5.0.1-next.1 (2025-09-27)

Bug Fixes

  • remove latest tag from release-it config (9398bb8)

Full Changelog: v5.0.1-next.0...v5.0.1-next.1

Upgrade to Vite 7, AdonisJS v7 and register shield keywords

10 Sep 08:49
Compare
Choose a tag to compare

5.0.1-next.0 (2025-09-10)

Bug Fixes

Full Changelog: v5.0.0-next.0...v5.0.1-next.0

Vite 7, Environment API, and NODE_ENV=production headaches

21 Jul 01:19
Compare
Choose a tag to compare

5.0.0-next.0 (2025-07-21)

  • Support for Vite 7
  • Migrated to Vite’s new Environment API for the build process, which allows orchestrating multiple builds at once
  • Instead of checking if NODE_ENV=production is set to start the Vite dev server,which was quite error-prone, we now check if a manifest fileis present. If it is, we dont start the dev server, and vice versa

Full Changelog: v4.0.0...v5.0.0-next.0

Vite 6 Support

14 Dec 12:16
Compare
Choose a tag to compare

This release adds support for Vite 6.

Breaking Changes

  • Vite.createRuntime is now Vite.createServerModuleRunner and accepts the same options as Vite's createServerModuleRunner. This breaking change is unlikely to affect you unless you are a package maintainer.

New Contributors

Full Changelog: v3.0.0...v4.0.0

Out of experimental phase

02 Jun 11:25
Compare
Choose a tag to compare

Changes

V3 of @adonisjs/vite is finally available in stable version. The changes have been fully explained in the following documents:

Migration Guide

To migrate your application you will need to make the following changes:

  • You will need to add the vite server middleware to your kernel.ts file :

    // file: kernel.ts
    
    server.use([
       () => import('@adonisjs/cors/cors_middleware'),
    +  () => import('@adonisjs/vite/vite_middleware'),
    ])
  • generateEntryPointsTags method is now async.

  • Our implementation is based on the new Vite Runtime API, available only since version 5.1. So make sure you have at least this version of vite in your package.json.

  • You'll need the latest version of adonisjs/assembler and adonisjs/core. Then make sure to have assetsBundler: false and the assembler hook defined in your adonisrc.ts file :

// file: adonisrc.ts

export default defineConfig({
+  assetsBundler: false,
+  hooks: {
+    onBuildStarting: [() => import('@adonisjs/vite/build_hook')],
+  },
})

Commits

  • chore: move from np to release-it (facfc61)
  • feat: add assetsBundler: false through codemods (7e059c4)
  • chore: update missing dependencies (29a7177)
  • feat(configure): add assembler hook automatically (7b16ac5)
  • chore: update dependencies (ef6751b)
  • chore(release): 3.0.0-11 (39cf324)
  • fix: handle cors issue (#14) (864659e)
  • chore(release): 3.0.0-10 (20bd446)
  • refactor: remove hardcoded hmr port (b5e8170)
  • fix: move to warmupRequest (859ec25)
  • chore(release): 3.0.0-9 (29f812c)
  • feat: prevent fouc in development (#12) (5936fb9)
  • fix: config/vite.stub file not found (9b84d3f)
  • perf: improve boot time of the provider (116d615)
  • refactor!: remove vite config builtin aliases (55447d4)
  • chore(release): 3.0.0-8 (1b57843)
  • fix: aliases not flattened (60aafa7)
  • chore(release): 3.0.0-7 (c48b294)
  • fix: enforce post for config plugin (7fd9e77)
  • chore(release): 3.0.0-6 (0973495)
  • feat: allow options to be passed to createDevServer (6c6080c)
  • chore(release): 3.0.0-5 (bce1201)
  • fix: createRuntime (b627136)
  • fix: create a new runtime instead of caching one (3ed37db)
  • chore(release): 3.0.0-4 (fec9128)
  • test: fix failing test (32b4a93)
  • feat: add support for preloading assets in production (ab0a13b)
  • chore: add japa snapshot plugin (1126e0f)
  • feat: csp support (d06e72b)
  • chore: middleware typo (1e596b7)
  • chore(release): 3.0.0-3 (e15289c)
  • chore: doc provider (6413d8b)
  • refactor: run dev server only in test & web environments (754ebcd)
  • refactor: register vite middleware in boot method (f1b112e)
  • refactor: add back edge plugin entrypoint (00f435e)
  • chore: restore gitignore and prettierignore (c4a53a4)
  • refactor: remove application dev dependency (eb6f51d)
  • fix: register edge in production (2b473a8)
  • chore(release): 3.0.0-2 (42930fb)
  • fix: tsup published files (edec6f1)
  • chore(release): 3.0.0-1 (ee15318)
  • chore: update shield peer dep version (2b40db1)
  • chore: update dependencies (7e61998)
  • chore: bundle using tsup-node (1dd8901)
  • chore: add funding (58fa144)
  • fix: build hook module (5c36641)
  • chore(release): 3.0.0-0 (30dc8e1)
  • chore: update version (f21ac99)
  • chore: update publish config (78ce80a)
  • feat: new vite ingration (ffeca7f)
  • chore: update dependencies (a67c8ac)

Cors issue / Breaking change

30 Mar 14:56
Compare
Choose a tag to compare
Pre-release

Changes

This new release has a breaking change: the Vite middleware must be added in your own kernel.ts like this :

// file: kernel.ts

// ...
server.use([
  // ...
  () => import('@adonisjs/cors/cors_middleware'),
  () => import('@adonisjs/vite/vite_middleware'),
])

This was needed because otherwise Vite's CORS settings and @adonisjs/cors could conflict. See #14 and #13 for more detailed explanations.

Commits

v3.0.0-10...v3.0.0-11

Module warmup fix

27 Mar 19:29
Compare
Choose a tag to compare
Module warmup fix Pre-release
Pre-release
  • refactor: remove hardcoded hmr port bcaf3cb
  • fix: move to warmupRequest e277ffd

v3.0.0-9...v3.0.0-10

Some improvements

25 Mar 21:46
Compare
Choose a tag to compare
Some improvements Pre-release
Pre-release

Breaking Changes

  • generateEntryPointsTags method is now async.

Changes

  • Prevent fouc in development. We initially have a patch for this in adonisjs/inertia. The patch has been moved to the adonisjs/vite package directly with a more generic implementation. thanks to this, fouc will be avoided on adonisjs+tsx, adonisjs+edge, adonisjs+inertia stacks.
  • Attempt to improve the start-up time of the Vite provider

Commits

  • feat: prevent fouc in development (#12) 15bef87
  • fix: config/vite.stub file not found b8dc984
  • perf: improve boot time of the provider 76016e4
  • refactor!: remove vite config builtin aliases 9b6f1b9

v3.0.0-8...v3.0.0-9

Aliases not flattened

06 Mar 00:36
Compare
Choose a tag to compare
Aliases not flattened Pre-release
Pre-release

Fixed a configuration resolving problem that caused Solid x Inertia apps to sometimes get a "find.test is not a function`

Commits

  • fix: aliases not flattened c270352

v3.0.0-7...v3.0.0-8

Fix Runtime API

04 Mar 12:55
Compare
Choose a tag to compare
Fix Runtime API Pre-release
Pre-release

Breaking changes

  • Remove the getRuntime in favor of a createRuntime method that returns a fresh instance

Commits

  • fix: createRuntime c8a5629
  • fix: create a new runtime instead of caching one 6d9d685

v3.0.0-4...v3.0.0-5