@plumeria/unplugin 11.1.3 → 11.2.0
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/core.js +378 -229
- package/dist/core.mjs +378 -229
- package/dist/vite.js +13 -3
- package/dist/vite.mjs +13 -3
- package/package.json +2 -2
package/dist/vite.js
CHANGED
|
@@ -86,11 +86,21 @@ function attachViteHooks(plugin, options) {
|
|
|
86
86
|
...plugin,
|
|
87
87
|
name: '@plumeria/unplugin:vite',
|
|
88
88
|
config(userConfig, { command }) {
|
|
89
|
+
const configToReturn = {
|
|
90
|
+
optimizeDeps: {
|
|
91
|
+
exclude: [
|
|
92
|
+
...(userConfig.optimizeDeps?.exclude ?? []),
|
|
93
|
+
'@plumeria/core',
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
};
|
|
89
97
|
if (command === 'build') {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
98
|
+
configToReturn.build = {
|
|
99
|
+
...(userConfig.build ?? {}),
|
|
100
|
+
cssCodeSplit: false,
|
|
101
|
+
};
|
|
93
102
|
}
|
|
103
|
+
return configToReturn;
|
|
94
104
|
},
|
|
95
105
|
configResolved(config) {
|
|
96
106
|
viteRoot = config.root;
|
package/dist/vite.mjs
CHANGED
|
@@ -51,11 +51,21 @@ function attachViteHooks(plugin, options) {
|
|
|
51
51
|
...plugin,
|
|
52
52
|
name: '@plumeria/unplugin:vite',
|
|
53
53
|
config(userConfig, { command }) {
|
|
54
|
+
const configToReturn = {
|
|
55
|
+
optimizeDeps: {
|
|
56
|
+
exclude: [
|
|
57
|
+
...(userConfig.optimizeDeps?.exclude ?? []),
|
|
58
|
+
'@plumeria/core',
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
};
|
|
54
62
|
if (command === 'build') {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
configToReturn.build = {
|
|
64
|
+
...(userConfig.build ?? {}),
|
|
65
|
+
cssCodeSplit: false,
|
|
66
|
+
};
|
|
58
67
|
}
|
|
68
|
+
return configToReturn;
|
|
59
69
|
},
|
|
60
70
|
configResolved(config) {
|
|
61
71
|
viteRoot = config.root;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/unplugin",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Universal Plumeria plugin for various build tools",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
],
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"unplugin": "^3.0.0",
|
|
89
|
-
"@plumeria/utils": "^11.
|
|
89
|
+
"@plumeria/utils": "^11.2.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@swc/core": "1.15.21",
|