-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
开启了 transformMixedEsModules: true
, vite preview 依然报错 - require 是动态引入
#43
Comments
haiting
changed the title
开启了
开启了 Dec 13, 2022
transformMixedEsModules: true
, vite preview依然报错transformMixedEsModules: true
, vite preview 依然报错 - require 是动态引入
请问问题解决了吗? |
没呢,改了代码引用方式
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
开启了
transformMixedEsModules: true
, require 动态引入文件, vite preview 依然报错transformMixedEsModules
:build: {
commonjsOptions: {
transformMixedEsModules: true
},
},
或者:
pnpm build
pnpm preview
Originally posted by @u373693041 in #9 (comment)
The text was updated successfully, but these errors were encountered: