-
Hello! I know it's a "feature" that Babel preset-env is used even if we don't specify it, but I really don't like it. By default Parcel is compiling my code for some really old browser like IE 11. How do we tell Parcel to use only what's in Babelrc, and to not use preset-env? |
Beta Was this translation helpful? Give feedback.
Answered by
mischnic
Sep 6, 2020
Replies: 1 comment 1 reply
-
That's unfortunately not possible with Parcel 1 (though Parcel 2 uses your babelrc without modification). You should set a browserslist config: https://parceljs.org/javascript.html#default-babel-transforms |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mischnic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's unfortunately not possible with Parcel 1 (though Parcel 2 uses your babelrc without modification).
You should set a browserslist config: https://parceljs.org/javascript.html#default-babel-transforms