MissFlower

Results 3 comments of MissFlower

``` # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="$HOME/.oh-my-zsh" # Set name of the...

我这边也有相同的问题 当package.json type指定module时会报react包找不到 当package.json删除type为默认时 报require的错误 提示Vite 的 CJS Node API 构建已经被废弃 但是插件的导入方式是esm的导入方式

> 和monorepo没关系,我这边也遇到这个问题了 使用`"react-vendor": [/react/]` 代替 `"react-vendor": [”react“] `就可以了 > > @rickyzhangca @MissFlower @sanyuan0704 ![image](https://github.com/sanyuan0704/vite-plugin-chunk-split/assets/22770493/bb33d03c-331a-4e9d-866e-73ae2fc91a54) 这样确实好使了 不过这是命中了正则的逻辑 固定包名的逻辑应该还是有问题 我想问另一个问题 就是如果package.json的type使用默认的commonjs 插件好像走的是cjs的代码 但是插件是用esm的导入方式 ![image](https://github.com/sanyuan0704/vite-plugin-chunk-split/assets/22770493/db597b90-9bd7-439d-bbb4-51d26366435d)