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

该插件targets属性不设置的情况下不会检查broswerslist相关配置项 #16

Open
viulu5824 opened this issue Jan 12, 2025 · 1 comment

Comments

@viulu5824
Copy link

我在package.json中设置了broswerslist属性为"ie 8",然而打包结果仍然采用的默认targets配置"last 2 versions and not dead, > 0.3%, Firefox ESR"
后来我检查了swc的文档以及issues,发现swc不支持broswerslist相关配置,仅能通过targets配置目标浏览器
请在文档中去除此条,以免误导开发者
最后感谢作者开发的此插件

@CyanSalt
Copy link
Owner

此插件会在内部解析 browserslist 配置,转化为特定的 targets 并传递给 SWC。您是否能提供一个最小的可重现该问题的仓库?

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