-
-
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
Browserslist not being applied from .browserslistrc or package.json #3365
Comments
related to #3085 |
@RiESAEX any update? relate issue had closed but i still face this issue |
@RiESAEX same issue here, lost a lot of time on this. I had to copy/past my .browserslist content in my .swcrc file. |
Simply copy/pasting the |
This comment was marked as spam.
This comment was marked as spam.
I am using swc core version |
@scssyworks I suggest to peek https://github.com/bradfitz/issue-tracker-behaviors#any-update . For your perpective it's simple one request to ask an update, but as project maintainer we daily gets several, or sometimes more than ten or hundreds redundant messages by each individual asks similar way. |
Describe the bug
Documentation at https://swc.rs/docs/configuration/supported-browsers#browserslist suggests that if
targets
property is omitted in.swcrc
, the browserslist should be read from.browserslistrc
or package.jsonbrowserslist
key.This does not seem to be the case, only way to seemingly enable different targets is to specify the "targets" key in ".swcrc".
Example file at
test.ts
:and
.browserslistrc
:Input code
Config
Playground link
No response
Expected behavior
Browser targets from
.browserslist
file applied. Debug output should match the one when"targets"
is specified in.swcrc
.Debug output with
"targets": "chrome 95"
in.swcrc
:Actual behavior
Targets from browserslist not being applied. A defaults (?) applied instead as per debug output:
Version
@swc/cli: 0.1.55 @swc/core: 1.2.133
Additional context
No response
The text was updated successfully, but these errors were encountered: