We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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:v4.4.9 ali-oss:v6.18.1
问题:
通过 import * as Oss from 'ali-oss' 的方式导入项目,在开发环境中可以正常 new Oss(),但是打包之后,Oss却变成了一个esmodule对象,导致new Oss报错。
import * as Oss from 'ali-oss'
The text was updated successfully, but these errors were encountered:
看下打包时有没有对CJS模块进行转换呢
Sorry, something went wrong.
我也遇到了同样的问题,请问你解决了吗?
No branches or pull requests
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: