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
All
"ue"等ts模块中的类型无法找到.
使用一些常见的JS构建工具,例如Rollup.js,tsup等,bundle代码后运行,日志中即可看到报错信息。
The text was updated successfully, but these errors were encountered:
webpack可以声明ue是外部模块,相信其它构建工具也会有类似的设置。
Sorry, something went wrong.
确实可以声明是外部模块的,但是它们一般会作类似这样的操作: dynamic import interop in rollup.js 在tsup中,确实也声明了外部模块,转换后的代码是commonjs的。比如,我把"ue"设置为外部模块后,它会转成直接调用require函数的代码: 目前我的方式是遵循这些打包器的习惯,设置了__esModule为true。
解决方案可参考 #1253 或者,当构建工具没有良好的配置选项时,参考本issue的思路也能避开这个问题,但做法并不符合ECMA规范。
chexiongsheng
Successfully merging a pull request may close this issue.
前置阅读 | Pre-reading
Puer的版本 | Puer Version
All
UE的版本 | UE Version
All
发生在哪个平台 | Platform
All
错误信息 | Error Message
"ue"等ts模块中的类型无法找到.
问题重现 | Bug reproduce
使用一些常见的JS构建工具,例如Rollup.js,tsup等,bundle代码后运行,日志中即可看到报错信息。
The text was updated successfully, but these errors were encountered: