@vanilla-extract/vite-plugin 3.8.0 → 3.8.1
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.
|
@@ -216,12 +216,14 @@ function vanillaExtractPlugin({
|
|
|
216
216
|
const {
|
|
217
217
|
moduleGraph
|
|
218
218
|
} = server;
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
const modules = Array.from(moduleGraph.getModulesByFile(absoluteId) || []);
|
|
220
|
+
for (const module of modules) {
|
|
221
|
+
if (module) {
|
|
222
|
+
moduleGraph.invalidateModule(module);
|
|
222
223
|
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
// Vite uses this timestamp to add `?t=` query string automatically for HMR.
|
|
225
|
+
module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now();
|
|
226
|
+
}
|
|
225
227
|
}
|
|
226
228
|
server.ws.send({
|
|
227
229
|
type: 'custom',
|
|
@@ -216,12 +216,14 @@ function vanillaExtractPlugin({
|
|
|
216
216
|
const {
|
|
217
217
|
moduleGraph
|
|
218
218
|
} = server;
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
const modules = Array.from(moduleGraph.getModulesByFile(absoluteId) || []);
|
|
220
|
+
for (const module of modules) {
|
|
221
|
+
if (module) {
|
|
222
|
+
moduleGraph.invalidateModule(module);
|
|
222
223
|
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
// Vite uses this timestamp to add `?t=` query string automatically for HMR.
|
|
225
|
+
module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now();
|
|
226
|
+
}
|
|
225
227
|
}
|
|
226
228
|
server.ws.send({
|
|
227
229
|
type: 'custom',
|
|
@@ -189,12 +189,14 @@ function vanillaExtractPlugin({
|
|
|
189
189
|
const {
|
|
190
190
|
moduleGraph
|
|
191
191
|
} = server;
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
const modules = Array.from(moduleGraph.getModulesByFile(absoluteId) || []);
|
|
193
|
+
for (const module of modules) {
|
|
194
|
+
if (module) {
|
|
195
|
+
moduleGraph.invalidateModule(module);
|
|
195
196
|
|
|
196
|
-
|
|
197
|
-
|
|
197
|
+
// Vite uses this timestamp to add `?t=` query string automatically for HMR.
|
|
198
|
+
module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now();
|
|
199
|
+
}
|
|
198
200
|
}
|
|
199
201
|
server.ws.send({
|
|
200
202
|
type: 'custom',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanilla-extract/vite-plugin",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"postcss-load-config": "^3.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"vite": "
|
|
24
|
+
"vite": "npm:vite@^2.7.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vite": "^2.2.3 || ^3.0.0 || ^4.0.3"
|