vitrify 0.6.9 → 0.6.10
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/index.js +9 -2
- package/package.json +1 -1
- package/src/node/index.ts +9 -2
package/dist/index.js
CHANGED
|
@@ -35,10 +35,11 @@ const moduleChunks = {
|
|
|
35
35
|
quasar: ['quasar']
|
|
36
36
|
};
|
|
37
37
|
const manualChunks = (id, api) => {
|
|
38
|
-
if (id.includes('vitrify/src/
|
|
38
|
+
if (id.includes('vitrify/src/')) {
|
|
39
39
|
const name = id.split('/').at(-1)?.split('.').at(0);
|
|
40
40
|
if (name && manualChunkNames.includes(name))
|
|
41
41
|
return name;
|
|
42
|
+
return 'vitrify';
|
|
42
43
|
}
|
|
43
44
|
else if (VIRTUAL_MODULES.some((virtualModule) => id.includes(virtualModule))) {
|
|
44
45
|
return VIRTUAL_MODULES.find((name) => id.includes(name));
|
|
@@ -493,7 +494,13 @@ export const baseConfig = async ({ ssr, appDir, publicDir, base = '/', command =
|
|
|
493
494
|
},
|
|
494
495
|
plugins,
|
|
495
496
|
optimizeDeps: {
|
|
496
|
-
exclude: [
|
|
497
|
+
exclude: [
|
|
498
|
+
'vue',
|
|
499
|
+
'vue-router',
|
|
500
|
+
'vue/server-renderer',
|
|
501
|
+
...serverModules,
|
|
502
|
+
...builtinModules
|
|
503
|
+
]
|
|
497
504
|
},
|
|
498
505
|
resolve: {
|
|
499
506
|
dedupe: ['vue', '@vue/server-renderer', 'vue-router'],
|
package/package.json
CHANGED
package/src/node/index.ts
CHANGED
|
@@ -54,9 +54,10 @@ const moduleChunks = {
|
|
|
54
54
|
quasar: ['quasar']
|
|
55
55
|
}
|
|
56
56
|
const manualChunks: ManualChunksOption = (id, api) => {
|
|
57
|
-
if (id.includes('vitrify/src/
|
|
57
|
+
if (id.includes('vitrify/src/')) {
|
|
58
58
|
const name = id.split('/').at(-1)?.split('.').at(0)
|
|
59
59
|
if (name && manualChunkNames.includes(name)) return name
|
|
60
|
+
return 'vitrify'
|
|
60
61
|
} else if (
|
|
61
62
|
VIRTUAL_MODULES.some((virtualModule) => id.includes(virtualModule))
|
|
62
63
|
) {
|
|
@@ -577,7 +578,13 @@ export const baseConfig = async ({
|
|
|
577
578
|
},
|
|
578
579
|
plugins,
|
|
579
580
|
optimizeDeps: {
|
|
580
|
-
exclude: [
|
|
581
|
+
exclude: [
|
|
582
|
+
'vue',
|
|
583
|
+
'vue-router',
|
|
584
|
+
'vue/server-renderer',
|
|
585
|
+
...serverModules,
|
|
586
|
+
...builtinModules
|
|
587
|
+
]
|
|
581
588
|
},
|
|
582
589
|
resolve: {
|
|
583
590
|
dedupe: ['vue', '@vue/server-renderer', 'vue-router'],
|