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

请问umi 3.0如何打包node_modules下的es6文件 #5062

Closed
Pasoul opened this issue Jul 20, 2020 · 1 comment
Closed

请问umi 3.0如何打包node_modules下的es6文件 #5062

Pasoul opened this issue Jul 20, 2020 · 1 comment

Comments

@Pasoul
Copy link

Pasoul commented Jul 20, 2020

What happens?

我引入了一个第三方js库,该库是用es6编写的,导致最终打包后的文件包含es6代码,umi3.0移除了extraBabelIncludes配置项。我应该怎么做才能打包node_mobules下的es6代码?

Context

  • Umi Version: 3.2.10
  • Node Version: 12.9.1
  • Platform: mac
@leftstick
Copy link
Contributor

试试 nodeModulesTransform ?

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

3 participants