-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to use 'in my stats' from browserslist #8985
Labels
Comments
Also, browserslist queries are valid. Here supported browsers using by my query
|
I think this problem caused by limitations of rust ported browserslist https://github.com/browserslist/browserslist-rs?tab=readme-ov-file#limitations You can use original browserslist in your webpack config and pass it to swc. Something like https://lightningcss.dev/docs.html#with-webpack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hi guys. I use webpack swc-loader + browserslist with my stats query but swc fails to parse targets. I made a reproduction using swc cli
Here is an error
Input code
No response
Config
Playground link (or link to the minimal reproduction)
https://github.com/taras-turchenko-moc/swc-browserslist-issue
SWC Info output
Also issue reproduces on
node:20.10.0-bullseye
docker image with amd archExpected behavior
SWC builds code with targets support based on my browsers usage
Actual behavior
No response
Version
@swc/core: 1.5.7
Additional context
To reproduce:
npm install
npm run build
The text was updated successfully, but these errors were encountered: