@md-plugins/vite-examples-plugin 0.1.0-beta.0 → 0.1.0-beta.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/README.md +16 -4
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
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
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -7,8 +7,8 @@ let targetFolder = "";
|
|
|
7
7
|
function devLoad(id) {
|
|
8
8
|
if (id.startsWith(resolvedIdPrefix)) {
|
|
9
9
|
const query = `'/src/examples/${id.substring(id.indexOf(":") + 1)}/*.vue'`;
|
|
10
|
-
return `export const code = import.meta.glob(${query}
|
|
11
|
-
export const source = import.meta.glob(${query}, { query: '?raw', import: 'default'
|
|
10
|
+
return `export const code = import.meta.glob(${query})
|
|
11
|
+
export const source = import.meta.glob(${query}, { query: '?raw', import: 'default' })`;
|
|
12
12
|
}
|
|
13
13
|
return void 0;
|
|
14
14
|
}
|
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
|
+
"version": "0.1.0-beta.10",
|
|
4
4
|
"description": "A Vite plugin for @md-plugins for handling imported examples in markdown files.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown-it",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tinyglobby": "^0.2.16"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"vite": "^8.0.
|
|
44
|
+
"vite": "^8.0.14"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "unbuild",
|