@moluoxixi/create-app 2.0.437 → 2.0.438
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/package.json +1 -1
- package/templates/common/base/vite/index.ts +19 -18
- package/templates/common/base/vite.config.ts +3 -2
- package/templates/react/features/manualRoutes/tsconfig.base.json +1 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/browserslist +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/jiti +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/parser +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/rollup +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/sass +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/terser +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/tsc +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/tsserver +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/tsx +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/vite +17 -0
- package/templates/react/features/pageRoutes/node_modules/.bin/yaml +17 -0
- package/templates/react/features/pageRoutes/package.json +4 -0
- package/templates/react/features/pageRoutes/tsconfig.base.json +1 -0
- package/templates/react/features/pageRoutes/vite/features/pageRoutes.ts +15 -0
- package/templates/react/features/sentry/node_modules/.bin/browserslist +17 -0
- package/templates/react/features/sentry/node_modules/.bin/jiti +17 -0
- package/templates/react/features/sentry/node_modules/.bin/parser +17 -0
- package/templates/react/features/sentry/node_modules/.bin/rollup +17 -0
- package/templates/react/features/sentry/node_modules/.bin/sass +17 -0
- package/templates/react/features/sentry/node_modules/.bin/terser +17 -0
- package/templates/react/features/sentry/node_modules/.bin/tsc +17 -0
- package/templates/react/features/sentry/node_modules/.bin/tsserver +17 -0
- package/templates/react/features/sentry/node_modules/.bin/tsx +17 -0
- package/templates/react/features/sentry/node_modules/.bin/vite +17 -0
- package/templates/react/features/sentry/node_modules/.bin/yaml +17 -0
- package/templates/react/features/sentry/package.json +3 -0
- package/templates/react/features/sentry/vite/features/sentry.ts +19 -25
- package/templates/react/features/zustand/tsconfig.base.json +1 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/browserslist +17 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/parser +17 -0
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/rollup +17 -0
- package/templates/react/micro-frontends/qiankun/base/package.json +2 -1
- package/templates/react/micro-frontends/qiankun/base/tsconfig.base.json +1 -0
- package/templates/react/micro-frontends/qiankun/base/vite/index.ts +19 -18
- package/templates/vue/features/element-plus/node_modules/.bin/browserslist +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/jiti +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/parser +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/rollup +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/sass +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/terser +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/tsx +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/vite +17 -0
- package/templates/vue/features/element-plus/node_modules/.bin/yaml +17 -0
- package/templates/vue/features/element-plus/package.json +1 -0
- package/templates/vue/features/element-plus/vite/features/element-plus.ts +13 -18
- package/templates/vue/features/pageRoutes/node_modules/.bin/browserslist +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/jiti +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/parser +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/rollup +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/sass +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/terser +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsx +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/vite +17 -0
- package/templates/vue/features/pageRoutes/node_modules/.bin/yaml +17 -0
- package/templates/vue/features/pageRoutes/package.json +3 -1
- package/templates/vue/features/pageRoutes/vite/features/pageRoutes.ts +15 -0
- package/templates/vue/features/sentry/node_modules/.bin/browserslist +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/jiti +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/parser +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/rollup +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/sass +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/terser +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/tsx +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/vite +17 -0
- package/templates/vue/features/sentry/node_modules/.bin/yaml +17 -0
- package/templates/vue/features/sentry/package.json +3 -0
- package/templates/vue/features/sentry/vite/features/sentry.ts +19 -25
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/browserslist +17 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/parser +17 -0
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/rollup +17 -0
- package/templates/vue/micro-frontends/qiankun/base/package.json +1 -0
- package/templates/vue/micro-frontends/qiankun/base/vite/index.ts +19 -18
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/browserslist +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/parser +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/rollup +17 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/package.json +1 -0
- package/templates/vue/micro-frontends/qiankun/features/element-plus/vite/features/element-plus.ts +13 -18
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/browserslist +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/parser +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/rollup +17 -0
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/package.json +3 -1
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/vite/features/pageRoutes.ts +15 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PageRoutes Vite 配置
|
|
3
|
+
* 启用文件系统路由 (vite-plugin-pages)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ViteConfigType, ViteFeatureContext } from '@moluoxixi/vite-config'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 获取 PageRoutes 配置
|
|
10
|
+
* @param _ctx - feature 配置上下文(未使用)
|
|
11
|
+
* @returns Config 配置(与 ViteConfigType 结构一致)
|
|
12
|
+
*/
|
|
13
|
+
export default (_ctx: ViteFeatureContext): Partial<ViteConfigType> => ({
|
|
14
|
+
pageRoutes: true,
|
|
15
|
+
})
|