ember-vite-hmr 2.2.3 → 2.2.4
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.
- package/dist/lib/hmr.js +5 -3
- package/package.json +6 -6
package/dist/lib/hmr.js
CHANGED
|
@@ -224,9 +224,11 @@ export function hmr(enableViteHmrForModes = ['development']) {
|
|
|
224
224
|
},
|
|
225
225
|
configResolved(config) {
|
|
226
226
|
base = config.base;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
// `import.meta.hot` is never truthy without a dev server, so a `vite
|
|
228
|
+
// build` that resolves mode to 'development' would inject permanently
|
|
229
|
+
// dead HMR scaffolding and leave imported components bound to undefined.
|
|
230
|
+
process.env.EMBER_VITE_HMR_ENABLED = (config.command === 'serve' &&
|
|
231
|
+
enableViteHmrForModes.includes(config.mode)).toString();
|
|
230
232
|
},
|
|
231
233
|
resolveId(id, importer, meta) {
|
|
232
234
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-vite-hmr",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "provides hmr support for ember apps",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@babel/core": "^7.29.0",
|
|
39
39
|
"@babel/plugin-transform-typescript": "^7.28.6",
|
|
40
40
|
"@babel/traverse": "^7.29.0",
|
|
41
|
-
"@babel/types": "^
|
|
41
|
+
"@babel/types": "^8.0.4",
|
|
42
42
|
"@embroider/addon-shim": "^1.10.3",
|
|
43
43
|
"@glimmer/syntax": "^0.95.0",
|
|
44
44
|
"@types/supports-color": "^10.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@glint/core": "^1.2.0",
|
|
62
62
|
"@glint/environment-ember-loose": "^1.5.2",
|
|
63
63
|
"@glint/environment-ember-template-imports": "^1.5.2",
|
|
64
|
-
"@glint/template": "^1.7.
|
|
64
|
+
"@glint/template": "^1.7.10",
|
|
65
65
|
"@rollup/plugin-babel": "^7.0.0",
|
|
66
66
|
"@tsconfig/ember": "^3.0.12",
|
|
67
67
|
"@types/babel__core": "^7.20.3",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@types/node": "^26.1.1",
|
|
75
75
|
"@types/rsvp": "^4.0.9",
|
|
76
76
|
"@types/semver": "^7.7.1",
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
|
78
78
|
"@typescript-eslint/parser": "^8.65.0",
|
|
79
79
|
"assert-never": "^1.4.0",
|
|
80
80
|
"babel-import-util": "^3.0.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"eslint-plugin-n": "^18.2.2",
|
|
92
92
|
"eslint-plugin-prettier": "^5.5.5",
|
|
93
93
|
"execa": "^9.6.1",
|
|
94
|
-
"fs-extra": "^11.
|
|
94
|
+
"fs-extra": "^11.4.0",
|
|
95
95
|
"globals": "^17.7.0",
|
|
96
96
|
"playwright-chromium": "^1.59.1",
|
|
97
97
|
"prettier": "^3.8.4",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"strip-ansi": "^7.2.0",
|
|
104
104
|
"style-loader": "^4.0.0",
|
|
105
105
|
"supports-color": "^10.2.2",
|
|
106
|
-
"terser": "^5.
|
|
106
|
+
"terser": "^5.49.0",
|
|
107
107
|
"thread-loader": "^4.0.2",
|
|
108
108
|
"typescript": "^5.9.3",
|
|
109
109
|
"vite": "^8.0.16",
|