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.
Files changed (2) hide show
  1. package/index.js +1 -3
  2. 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: "app/",
193
+ path: "",
196
194
  exclude: ["**/components/**"]
197
195
  });
198
196
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly-vite",
3
- "version": "1.5.3",
4
- "gitHead": "aed5c2a383bfcc1d8489ee880bca3f36bc2cbd28",
3
+ "version": "1.5.5",
4
+ "gitHead": "7b08ec7304bb035fffc7ec70769fa7615f3af702",
5
5
  "private": false,
6
6
  "description": "Befly Vite 配置预设和插件集合",
7
7
  "keywords": [