Add enableBabelRuntime option to reduce a bundle size - #228
Conversation
|
cc @robhogan |
3cba525 to
27812f3
Compare
|
@robhogan Do you think we can merge this change to the template ? |
|
I appreciate the direction here but I don’t want to be adding more to the template that doubles down on the assumption that source files have a known local version of The way I’m looking to do this is to bypass hierarchical lookup for The wiring (scheme resolvers, moduleName via caller) is mostly shipped now and I’m aiming to get that into the next RN cut. The end result will be no template dependency on |
Summary:
I described the issue here: https://x.com/tell_me_mur/status/2064328541861183526?s=20
shorty without babel runtime version specified, babel helpers will be inlined multiple times across different files instead on imported once
Changelog:
[GENERAL] [ADDED] - Add
enableBabelRuntimeoption to reduce a bundle sizeTest Plan:
...