@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.
Files changed (2) hide show
  1. package/README.md +16 -4
  2. 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
- rollupOptions: {
65
+ rolldownOptions: {
66
66
  output: {
67
- manualChunks: viteManualChunks,
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.rollupOptions = {
109
- output: { manualChunks: viteManualChunks },
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@md-plugins/vite-examples-plugin",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0-beta.4",
4
4
  "description": "A Vite plugin for @md-plugins for handling imported examples in markdown files.",
5
5
  "keywords": [
6
6
  "markdown-it",