Skip to content
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

打包 Uglifyjs 报错问题 #888

Closed
zhengdongzhe opened this issue Jun 16, 2021 · 0 comments
Closed

打包 Uglifyjs 报错问题 #888

zhengdongzhe opened this issue Jun 16, 2021 · 0 comments

Comments

@zhengdongzhe
Copy link

Environment(required) | 环境(必填)

mac

  • roadhog version(roadhog版本)2.5.0-beta.4
  • Nodejs and Npm version(Nodejs 和 Npm 版本)Nodejs 10.14.1 Npm 6.13.4
  • Operating environment (e.g. OS name) and its version(操作系统版本): macOS Big Sur 11.4

What did you do? Please provide steps to re-produce your problem.(请提供复现步骤)

更新package.json,其中es-abstract包升级到1.18.3版本后会多出一个依赖unbox-primitive

在build 打包过程中 提示Uglifyjs 报错
报错行内容为:
return new DynamicVariable(DYN_ARRAY, x.map((y, i) => unbox(y, path + '[' + i + ']')))

在.wenpackrc中已经添加配置项es5ImcompatibleVersions: true,但还是会出现Uglifyjs报错。翻阅一些资料找到可以提交pr来更新es5ImcompatibleVersions。但是这个包没有找到对应的文件内容...

希望可以得到解决方案

What do you expected?(预期的正常效果)

What happen?(发生了何种非正常现象)

Re-producible online demo (可复现的在线demo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant