@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.
Files changed (86) hide show
  1. package/package.json +1 -1
  2. package/templates/common/base/vite/index.ts +19 -18
  3. package/templates/common/base/vite.config.ts +3 -2
  4. package/templates/react/features/manualRoutes/tsconfig.base.json +1 -0
  5. package/templates/react/features/pageRoutes/node_modules/.bin/browserslist +17 -0
  6. package/templates/react/features/pageRoutes/node_modules/.bin/jiti +17 -0
  7. package/templates/react/features/pageRoutes/node_modules/.bin/parser +17 -0
  8. package/templates/react/features/pageRoutes/node_modules/.bin/rollup +17 -0
  9. package/templates/react/features/pageRoutes/node_modules/.bin/sass +17 -0
  10. package/templates/react/features/pageRoutes/node_modules/.bin/terser +17 -0
  11. package/templates/react/features/pageRoutes/node_modules/.bin/tsc +17 -0
  12. package/templates/react/features/pageRoutes/node_modules/.bin/tsserver +17 -0
  13. package/templates/react/features/pageRoutes/node_modules/.bin/tsx +17 -0
  14. package/templates/react/features/pageRoutes/node_modules/.bin/vite +17 -0
  15. package/templates/react/features/pageRoutes/node_modules/.bin/yaml +17 -0
  16. package/templates/react/features/pageRoutes/package.json +4 -0
  17. package/templates/react/features/pageRoutes/tsconfig.base.json +1 -0
  18. package/templates/react/features/pageRoutes/vite/features/pageRoutes.ts +15 -0
  19. package/templates/react/features/sentry/node_modules/.bin/browserslist +17 -0
  20. package/templates/react/features/sentry/node_modules/.bin/jiti +17 -0
  21. package/templates/react/features/sentry/node_modules/.bin/parser +17 -0
  22. package/templates/react/features/sentry/node_modules/.bin/rollup +17 -0
  23. package/templates/react/features/sentry/node_modules/.bin/sass +17 -0
  24. package/templates/react/features/sentry/node_modules/.bin/terser +17 -0
  25. package/templates/react/features/sentry/node_modules/.bin/tsc +17 -0
  26. package/templates/react/features/sentry/node_modules/.bin/tsserver +17 -0
  27. package/templates/react/features/sentry/node_modules/.bin/tsx +17 -0
  28. package/templates/react/features/sentry/node_modules/.bin/vite +17 -0
  29. package/templates/react/features/sentry/node_modules/.bin/yaml +17 -0
  30. package/templates/react/features/sentry/package.json +3 -0
  31. package/templates/react/features/sentry/vite/features/sentry.ts +19 -25
  32. package/templates/react/features/zustand/tsconfig.base.json +1 -0
  33. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/browserslist +17 -0
  34. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/parser +17 -0
  35. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/rollup +17 -0
  36. package/templates/react/micro-frontends/qiankun/base/package.json +2 -1
  37. package/templates/react/micro-frontends/qiankun/base/tsconfig.base.json +1 -0
  38. package/templates/react/micro-frontends/qiankun/base/vite/index.ts +19 -18
  39. package/templates/vue/features/element-plus/node_modules/.bin/browserslist +17 -0
  40. package/templates/vue/features/element-plus/node_modules/.bin/jiti +17 -0
  41. package/templates/vue/features/element-plus/node_modules/.bin/parser +17 -0
  42. package/templates/vue/features/element-plus/node_modules/.bin/rollup +17 -0
  43. package/templates/vue/features/element-plus/node_modules/.bin/sass +17 -0
  44. package/templates/vue/features/element-plus/node_modules/.bin/terser +17 -0
  45. package/templates/vue/features/element-plus/node_modules/.bin/tsx +17 -0
  46. package/templates/vue/features/element-plus/node_modules/.bin/vite +17 -0
  47. package/templates/vue/features/element-plus/node_modules/.bin/yaml +17 -0
  48. package/templates/vue/features/element-plus/package.json +1 -0
  49. package/templates/vue/features/element-plus/vite/features/element-plus.ts +13 -18
  50. package/templates/vue/features/pageRoutes/node_modules/.bin/browserslist +17 -0
  51. package/templates/vue/features/pageRoutes/node_modules/.bin/jiti +17 -0
  52. package/templates/vue/features/pageRoutes/node_modules/.bin/parser +17 -0
  53. package/templates/vue/features/pageRoutes/node_modules/.bin/rollup +17 -0
  54. package/templates/vue/features/pageRoutes/node_modules/.bin/sass +17 -0
  55. package/templates/vue/features/pageRoutes/node_modules/.bin/terser +17 -0
  56. package/templates/vue/features/pageRoutes/node_modules/.bin/tsx +17 -0
  57. package/templates/vue/features/pageRoutes/node_modules/.bin/vite +17 -0
  58. package/templates/vue/features/pageRoutes/node_modules/.bin/yaml +17 -0
  59. package/templates/vue/features/pageRoutes/package.json +3 -1
  60. package/templates/vue/features/pageRoutes/vite/features/pageRoutes.ts +15 -0
  61. package/templates/vue/features/sentry/node_modules/.bin/browserslist +17 -0
  62. package/templates/vue/features/sentry/node_modules/.bin/jiti +17 -0
  63. package/templates/vue/features/sentry/node_modules/.bin/parser +17 -0
  64. package/templates/vue/features/sentry/node_modules/.bin/rollup +17 -0
  65. package/templates/vue/features/sentry/node_modules/.bin/sass +17 -0
  66. package/templates/vue/features/sentry/node_modules/.bin/terser +17 -0
  67. package/templates/vue/features/sentry/node_modules/.bin/tsx +17 -0
  68. package/templates/vue/features/sentry/node_modules/.bin/vite +17 -0
  69. package/templates/vue/features/sentry/node_modules/.bin/yaml +17 -0
  70. package/templates/vue/features/sentry/package.json +3 -0
  71. package/templates/vue/features/sentry/vite/features/sentry.ts +19 -25
  72. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/browserslist +17 -0
  73. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/parser +17 -0
  74. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/rollup +17 -0
  75. package/templates/vue/micro-frontends/qiankun/base/package.json +1 -0
  76. package/templates/vue/micro-frontends/qiankun/base/vite/index.ts +19 -18
  77. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/browserslist +17 -0
  78. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/parser +17 -0
  79. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/rollup +17 -0
  80. package/templates/vue/micro-frontends/qiankun/features/element-plus/package.json +1 -0
  81. package/templates/vue/micro-frontends/qiankun/features/element-plus/vite/features/element-plus.ts +13 -18
  82. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/browserslist +17 -0
  83. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/parser +17 -0
  84. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/rollup +17 -0
  85. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/package.json +3 -1
  86. 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
+ })