-
Notifications
You must be signed in to change notification settings - Fork 122
-
Notifications
You must be signed in to change notification settings - Fork 122
babelOptions ignored in esm compiler #700
Comments
This is a different transpilation which only converts ES modules into System.register, separate to the other Babel transforms. An option to pass |
Why is Babel called twice? Babel could do all transpilation in one step for a file or I am wrong!? Please, could you shortly explain in which steps the builder transpiles the source code files? Why is it hard to achieve to set the Thanks for answering in advance |
Are you trying to turn |
Yes, by setting in jspm.conf.js and by .babelrc, but the call at line esm.js#59 doesn't pass the |
Specifically I was wondering what value you wanted for the compact option, to understand the use case better. |
Sorry, I want to disable the warning by using |
I'd be open to setting a hard default of |
Yes, this should work. For understanding systemjs and systemjs/builder in more detail, do you have a short description, documentation for the internal architecture? It would be helpful for using systemjs in the correct intended way. Especially for Babel. I saw you are working on docs, could it be part of it? Thanks |
I'd love to have a |
Sure, added in 8a73596. |
Released in 0.15.33. |
babelOptions defined in jspm.conf.js or by direct calling SystemJS.conf() or System.conf() are not passed to the babel transpiler in https://github.com/systemjs/builder/blob/master/compilers/esm.js#L59. Isn't it needed at this place? This causes warnings of the babel transpiler for large files, because compact mode can't be enabled : https://github.com/babel/babel/blob/master/packages/babel-generator/src/index.js#L81.
The text was updated successfully, but these errors were encountered: