-
Notifications
You must be signed in to change notification settings - Fork 575
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
在vite中使用出现开发环境与生产环境表现不一致的问题 #1261
Comments
看下打包时有没有对CJS模块进行转换呢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vite:v4.4.9
ali-oss:v6.18.1
问题:
通过
import * as Oss from 'ali-oss'
的方式导入项目,在开发环境中可以正常 new Oss(),但是打包之后,Oss却变成了一个esmodule对象,导致new Oss报错。The text was updated successfully, but these errors were encountered: