@intlify/unplugin-vue-i18n 11.2.4 → 11.2.5
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/lib/index.cjs +15 -9
- package/lib/index.mjs +15 -9
- package/package.json +2 -2
package/lib/index.cjs
CHANGED
|
@@ -322,16 +322,22 @@ function resourcePlugin({
|
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
325
|
+
handleHotUpdate({ file, modules, server }) {
|
|
326
|
+
const key = pathe.normalize(file);
|
|
327
|
+
const virtualId = realPathToVirtualId.get(key);
|
|
328
|
+
const inBundle = !!(include && pluginutils.createFilter(include, exclude)(key));
|
|
329
|
+
if (!virtualId && !inBundle) return;
|
|
330
|
+
const affected = new Set(modules);
|
|
331
|
+
const addById = (id) => {
|
|
332
|
+
const mod = id && server.moduleGraph.getModuleById(id);
|
|
333
|
+
if (mod) affected.add(mod);
|
|
334
|
+
};
|
|
335
|
+
addById(virtualId);
|
|
336
|
+
if (inBundle) {
|
|
337
|
+
addById(asVirtualId(INTLIFY_BUNDLE_IMPORT_ID, meta.framework));
|
|
334
338
|
}
|
|
339
|
+
if (affected.size === modules.length) return;
|
|
340
|
+
return [...affected];
|
|
335
341
|
}
|
|
336
342
|
},
|
|
337
343
|
webpack(compiler) {
|
package/lib/index.mjs
CHANGED
|
@@ -310,16 +310,22 @@ function resourcePlugin({
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
313
|
+
handleHotUpdate({ file, modules, server }) {
|
|
314
|
+
const key = normalize(file);
|
|
315
|
+
const virtualId = realPathToVirtualId.get(key);
|
|
316
|
+
const inBundle = !!(include && createFilter(include, exclude)(key));
|
|
317
|
+
if (!virtualId && !inBundle) return;
|
|
318
|
+
const affected = new Set(modules);
|
|
319
|
+
const addById = (id) => {
|
|
320
|
+
const mod = id && server.moduleGraph.getModuleById(id);
|
|
321
|
+
if (mod) affected.add(mod);
|
|
322
|
+
};
|
|
323
|
+
addById(virtualId);
|
|
324
|
+
if (inBundle) {
|
|
325
|
+
addById(asVirtualId(INTLIFY_BUNDLE_IMPORT_ID, meta.framework));
|
|
322
326
|
}
|
|
327
|
+
if (affected.size === modules.length) return;
|
|
328
|
+
return [...affected];
|
|
323
329
|
}
|
|
324
330
|
},
|
|
325
331
|
webpack(compiler) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlify/unplugin-vue-i18n",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.5",
|
|
4
4
|
"description": "unplugin for Vue I18n",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"picocolors": "^1.0.0",
|
|
40
40
|
"unplugin": "^2.3.4",
|
|
41
41
|
"vue": "~3.5.34",
|
|
42
|
-
"@intlify/bundle-utils": "11.2.
|
|
42
|
+
"@intlify/bundle-utils": "11.2.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@intlify/core-base": "next",
|