@adonisjs/vite 5.1.0-next.0 → 5.1.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -349,8 +349,12 @@ var Vite = class {
|
|
|
349
349
|
*/
|
|
350
350
|
async createDevServer(options) {
|
|
351
351
|
const { createServer } = await import("vite");
|
|
352
|
+
const hmrPort = Number(process.env.VITE_HMR_PORT);
|
|
352
353
|
this.#devServer = await createServer({
|
|
353
|
-
server: {
|
|
354
|
+
server: {
|
|
355
|
+
middlewareMode: true,
|
|
356
|
+
...hmrPort && !Number.isNaN(hmrPort) ? { hmr: { port: hmrPort } } : {}
|
|
357
|
+
},
|
|
354
358
|
appType: "custom",
|
|
355
359
|
...options
|
|
356
360
|
});
|
package/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Vite
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BBT5VB3N.js";
|
|
4
4
|
import {
|
|
5
5
|
ViteMiddleware
|
|
6
6
|
} from "../chunk-AF6PV64J.js";
|
|
@@ -86,8 +86,9 @@ var ViteProvider = class {
|
|
|
86
86
|
const isWebOrTestEnvironment = appEnvironment === "web" || appEnvironment === "test";
|
|
87
87
|
const vite = new Vite(this.app.config.get("vite"));
|
|
88
88
|
this.#shouldRunViteDevServer = !vite.hasManifestFile && isWebOrTestEnvironment;
|
|
89
|
-
this.app.container.singleton(
|
|
89
|
+
this.app.container.singleton(Vite, () => vite);
|
|
90
90
|
this.app.container.singleton(ViteMiddleware, () => new ViteMiddleware(vite));
|
|
91
|
+
this.app.container.alias("vite", Vite);
|
|
91
92
|
}
|
|
92
93
|
/**
|
|
93
94
|
* Boots the Vite provider by registering plugins and integrations
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/vite",
|
|
3
3
|
"description": "Vite plugin for AdonisJS",
|
|
4
|
-
"version": "5.1.0-next.
|
|
4
|
+
"version": "5.1.0-next.2",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -56,27 +56,27 @@
|
|
|
56
56
|
"@japa/runner": "4.4.0",
|
|
57
57
|
"@japa/snapshot": "^2.0.9",
|
|
58
58
|
"@poppinss/ts-exec": "^1.4.1",
|
|
59
|
-
"@release-it/conventional-changelog": "^10.0.
|
|
60
|
-
"@types/node": "^24.
|
|
59
|
+
"@release-it/conventional-changelog": "^10.0.2",
|
|
60
|
+
"@types/node": "^24.10.1",
|
|
61
61
|
"@types/supertest": "^6.0.3",
|
|
62
62
|
"c8": "^10.1.3",
|
|
63
63
|
"copyfiles": "^2.4.1",
|
|
64
64
|
"cross-env": "^10.1.0",
|
|
65
65
|
"del-cli": "^7.0.0",
|
|
66
66
|
"edge.js": "^6.3.0",
|
|
67
|
-
"eslint": "^9.
|
|
68
|
-
"prettier": "^3.
|
|
69
|
-
"release-it": "^19.0.
|
|
67
|
+
"eslint": "^9.39.1",
|
|
68
|
+
"prettier": "^3.7.0",
|
|
69
|
+
"release-it": "^19.0.6",
|
|
70
70
|
"supertest": "^7.1.4",
|
|
71
|
-
"tsup": "^8.5.
|
|
71
|
+
"tsup": "^8.5.1",
|
|
72
72
|
"typedoc": "^0.28.14",
|
|
73
73
|
"typescript": "~5.9.3",
|
|
74
|
-
"vite": "^7.
|
|
74
|
+
"vite": "^7.2.4"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@poppinss/utils": "^7.0.0-next.3",
|
|
78
78
|
"edge-error": "^4.0.2",
|
|
79
|
-
"vite-plugin-restart": "^
|
|
79
|
+
"vite-plugin-restart": "^2.0.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@adonisjs/assembler": "^8.0.0-next.10",
|