@md-plugins/vite-examples-plugin 0.1.0-beta.3 → 0.1.0-beta.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/README.md +16 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,9 +62,15 @@ export default defineConfig(({ mode }) => {
|
|
|
62
62
|
],
|
|
63
63
|
build: {
|
|
64
64
|
chunkSizeWarningLimit: 650,
|
|
65
|
-
|
|
65
|
+
rolldownOptions: {
|
|
66
66
|
output: {
|
|
67
|
-
|
|
67
|
+
codeSplitting: {
|
|
68
|
+
groups: [
|
|
69
|
+
{
|
|
70
|
+
name: (moduleId) => viteManualChunks(moduleId) ?? null,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
68
74
|
},
|
|
69
75
|
},
|
|
70
76
|
},
|
|
@@ -105,8 +111,14 @@ import { viteExamplesPlugin, viteManualChunks } from '@md-plugins/vite-examples-
|
|
|
105
111
|
if (ctx.prod && isClient) {
|
|
106
112
|
viteConf.build = viteConf.build || {}
|
|
107
113
|
viteConf.build.chunkSizeWarningLimit = 650
|
|
108
|
-
viteConf.build.
|
|
109
|
-
|
|
114
|
+
viteConf.build.rolldownOptions = viteConf.build.rolldownOptions || {}
|
|
115
|
+
viteConf.build.rolldownOptions.output = viteConf.build.rolldownOptions.output || {}
|
|
116
|
+
viteConf.build.rolldownOptions.output.codeSplitting = {
|
|
117
|
+
groups: [
|
|
118
|
+
{
|
|
119
|
+
name: (moduleId) => viteManualChunks(moduleId) ?? null,
|
|
120
|
+
},
|
|
121
|
+
],
|
|
110
122
|
}
|
|
111
123
|
}
|
|
112
124
|
},
|