befly-vite 1.5.8 → 1.5.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/index.js +7 -5
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -65,7 +65,8 @@ function createAutoImportPlugin() {
|
|
|
65
65
|
imports: ["vue", "pinia", VueRouterAutoImports],
|
|
66
66
|
resolvers: [
|
|
67
67
|
TDesignResolver({
|
|
68
|
-
library: "vue-next"
|
|
68
|
+
library: "vue-next",
|
|
69
|
+
importStyle: "css"
|
|
69
70
|
})
|
|
70
71
|
],
|
|
71
72
|
dts: false,
|
|
@@ -88,11 +89,12 @@ function resolveTDesignIcon(componentName) {
|
|
|
88
89
|
*/
|
|
89
90
|
function createComponentsPlugin() {
|
|
90
91
|
return Components({
|
|
91
|
-
//
|
|
92
|
-
include: [/[\\/]src[\\/].*\.vue$/],
|
|
92
|
+
// 给 admin 自身源码和 befly-admin-ui 视图做组件自动注册;addon 视图强制手动导入
|
|
93
|
+
include: [/[\\/]src[\\/].*\.vue$/, /[\\/]node_modules[\\/]befly-admin-ui[\\/].*\.vue$/],
|
|
93
94
|
resolvers: [
|
|
94
95
|
TDesignResolver({
|
|
95
|
-
library: "vue-next"
|
|
96
|
+
library: "vue-next",
|
|
97
|
+
importStyle: "css"
|
|
96
98
|
}),
|
|
97
99
|
resolveTDesignIcon
|
|
98
100
|
],
|
|
@@ -167,7 +169,7 @@ export function createBeflyViteConfig(options = {}) {
|
|
|
167
169
|
},
|
|
168
170
|
|
|
169
171
|
optimizeDeps: {
|
|
170
|
-
include: ["vue", "vue-router", "pinia", "
|
|
172
|
+
include: ["vue", "vue-router", "pinia", "tdesign-vue-next", "tdesign-icons-vue-next"]
|
|
171
173
|
}
|
|
172
174
|
});
|
|
173
175
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-vite",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.5.10",
|
|
4
|
+
"gitHead": "d7c6b95ecf7d71f2e41d89ce3a1d4672a2598a40",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Befly Vite 配置预设和插件集合",
|
|
7
7
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"unplugin-auto-import": "^21.0.0",
|
|
39
39
|
"unplugin-vue-components": "^31.0.0",
|
|
40
40
|
"vite-bundle-analyzer": "^1.3.6",
|
|
41
|
-
"vite-plugin-vue-devtools": "^8.0.
|
|
41
|
+
"vite-plugin-vue-devtools": "^8.0.7"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"bun": ">=1.3.0"
|