befly-vite 1.5.3 → 1.5.5
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 +1 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -62,7 +62,6 @@ function createAutoImportPlugin() {
|
|
|
62
62
|
return AutoImport({
|
|
63
63
|
// 只给 admin 自身源码做自动导入;addon 视图强制手动导入
|
|
64
64
|
include: [/[\\/]src[\\/].*\.(vue|js)$/],
|
|
65
|
-
exclude: [/[\\/]packages[\\/].*[\\/]views[\\/]/, /[\\/]node_modules[\\/]befly-admin-ui[\\/]views[\\/]/],
|
|
66
65
|
imports: ["vue", "pinia", VueRouterAutoImports],
|
|
67
66
|
resolvers: [
|
|
68
67
|
TDesignResolver({
|
|
@@ -91,7 +90,6 @@ function createComponentsPlugin() {
|
|
|
91
90
|
return Components({
|
|
92
91
|
// 只给 admin 自身源码做组件自动注册;addon 视图强制手动导入
|
|
93
92
|
include: [/[\\/]src[\\/].*\.vue$/],
|
|
94
|
-
exclude: [/[\\/]packages[\\/].*[\\/]views[\\/]/, /[\\/]node_modules[\\/]befly-admin-ui[\\/]views[\\/]/],
|
|
95
93
|
resolvers: [
|
|
96
94
|
TDesignResolver({
|
|
97
95
|
library: "vue-next"
|
|
@@ -192,7 +190,7 @@ export function scanViews(appRoot = process.cwd()) {
|
|
|
192
190
|
if (existsSync(appViewsPath)) {
|
|
193
191
|
routesFolders.push({
|
|
194
192
|
src: realpathSync(appViewsPath),
|
|
195
|
-
path: "
|
|
193
|
+
path: "",
|
|
196
194
|
exclude: ["**/components/**"]
|
|
197
195
|
});
|
|
198
196
|
}
|
package/package.json
CHANGED