ClarkXia
ClarkXia
- [x] #5308 - [x] #5321 - [x] #5350 - [x] SSR 场景下 routes 相关方法不执行 #5398 #5325 - [x] #5399 - [x] chore: fix auth type #5327 - [x] fix:...
 vite 模式下 设置 outputAssetsPath 报错
Resolve https://github.com/ice-lab/icestark/issues/413
vite 模式下使用 icestark 插件,会导致原先的 index.css 变化为 app.css,期望样式文件名不会发生变化
routes.ts 文件中如果通过如下方式引入,将导致 store Provider 的重定向逻辑失败 ```diff -import Preview from './pages/preview'; +import Preview from '@/pages/preview'; ```
内置 react-router 版本为 5.x,需要支持 react-router 6.x 的使用 ## 方案 项目目录下依赖 react-router 6.x,项目运行便使用该版本,内置 react-router 运行时能力需要兼用 v5 和 v6 之间的 break change
packge.json 信息发生变化后,vite 模式下的缓存不会失效,针对 package.json 的变化需要强制失效 node_modules/.vite 下缓存信息
相关 issue https://github.com/alibaba/ice/issues/4654 webpack 5 不再自动 polyfill Node.js 的核心模块,而社区部分包在 browser 端会依赖到相关 node 模块,需要提供相应的 fallback 配置