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

【Bug】Umi使用mako和targets不兼容 #1566

Open
consistent-k opened this issue Sep 5, 2024 · 2 comments
Open

【Bug】Umi使用mako和targets不兼容 #1566

consistent-k opened this issue Sep 5, 2024 · 2 comments

Comments

@consistent-k
Copy link

最小复现仓库:
https://github.com/consistent-k/umi-mako/blob/main/.umirc.ts#L11
https://github.com/consistent-k/umi-mako/blob/main/.umirc.prod.ts#5

需要执行build之后验证

makotargets 配置不兼容,关闭其中一个正常。如果开启其中一个则有报错如下:
image

@stormslowly
Copy link
Member

#1451 这个 pr 会解决

@consistent-k
Copy link
Author

#1451 这个 pr 会解决

另外问一句 之前umi兼容更低版本 如chrome: 49版本的时候 可以配置完targets 再配置legacy:{} 使用mako和legacy会有警告提示 后续只需要配置targets就可以兼容了对吗

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

2 participants