@vanilla-extract/vite-plugin 5.1.0 → 5.1.1-vite-hmr-fix-20250706080631
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.
@@ -63,10 +63,7 @@ function vanillaExtractPlugin({
|
|
63
63
|
const modules = moduleGraph.getModulesByFile(absoluteId);
|
64
64
|
if (modules) {
|
65
65
|
for (const module of modules) {
|
66
|
-
moduleGraph.invalidateModule(module);
|
67
|
-
|
68
|
-
// Vite uses this timestamp to add `?t=` query string automatically for HMR.
|
69
|
-
module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now();
|
66
|
+
moduleGraph.invalidateModule(module, undefined, undefined, true);
|
70
67
|
}
|
71
68
|
}
|
72
69
|
}
|
@@ -63,10 +63,7 @@ function vanillaExtractPlugin({
|
|
63
63
|
const modules = moduleGraph.getModulesByFile(absoluteId);
|
64
64
|
if (modules) {
|
65
65
|
for (const module of modules) {
|
66
|
-
moduleGraph.invalidateModule(module);
|
67
|
-
|
68
|
-
// Vite uses this timestamp to add `?t=` query string automatically for HMR.
|
69
|
-
module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now();
|
66
|
+
moduleGraph.invalidateModule(module, undefined, undefined, true);
|
70
67
|
}
|
71
68
|
}
|
72
69
|
}
|
@@ -55,10 +55,7 @@ function vanillaExtractPlugin({
|
|
55
55
|
const modules = moduleGraph.getModulesByFile(absoluteId);
|
56
56
|
if (modules) {
|
57
57
|
for (const module of modules) {
|
58
|
-
moduleGraph.invalidateModule(module);
|
59
|
-
|
60
|
-
// Vite uses this timestamp to add `?t=` query string automatically for HMR.
|
61
|
-
module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now();
|
58
|
+
moduleGraph.invalidateModule(module, undefined, undefined, true);
|
62
59
|
}
|
63
60
|
}
|
64
61
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vanilla-extract/vite-plugin",
|
3
|
-
"version": "5.1.
|
3
|
+
"version": "5.1.1-vite-hmr-fix-20250706080631",
|
4
4
|
"description": "Zero-runtime Stylesheets-in-TypeScript",
|
5
5
|
"main": "dist/vanilla-extract-vite-plugin.cjs.js",
|
6
6
|
"module": "dist/vanilla-extract-vite-plugin.esm.js",
|