EsVesrion and env config should be passed in more build pass. #4886
magic-akari
started this conversation in
General
Replies: 3 comments 2 replies
-
I think it's fine to take them as an arguement |
Beta Was this translation helpful? Give feedback.
0 replies
-
For #4870 babel have a dedicated pass |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also is it possible to run module pass before compat? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For swc_ecma_codegen we got EsVersion.
But it might be better to have an env config.
we will know how to print the number literial to solve the #4870 .
For swc_ecma_transforms_module.
There is a lot of generated template code, which is not converted from source code.
Optimal code output requires awareness of EsVersion target and env config.
Beta Was this translation helpful? Give feedback.
All reactions