react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Run babel transformation before finding dependencies

Open benhughes opened this issue 11 years ago • 7 comments

Right now the React Native packager builds the dependency tree and then runs the babel transformation this can cause issues if you have babel plugins that manipulate the path of required modules (e.g. resolve ~/my_module to your root directory). Is it possible to run babel first then build the dependency tree?

benhughes avatar Nov 17 '15 17:11 benhughes

some plugin like https://github.com/codemix/babel-plugin-macros also need this.

buhe avatar Jan 22 '16 19:01 buhe

This would probably be a substantial change to the packager / Haste -- @martinbigio is this something you think could be done in a few days or is it too big of a project to invest time in?

ide avatar Jan 22 '16 20:01 ide

@davidaurelio was planning to work on this when he gets some free bandwidth :)

martinbigio avatar Jan 25 '16 16:01 martinbigio

I am working on it. Should be in master this week

davidaurelio avatar Feb 02 '16 09:02 davidaurelio

Hey @davidaurelio,

This would be really useful for me as well. Do you have an idea when it's likely to get in?

Cheers!

adamshone avatar Feb 17 '16 14:02 adamshone

I hope it gets in tomorrow. I have it mostly working. It was an awful lot of work.

davidaurelio avatar Feb 18 '16 13:02 davidaurelio

Awesome news. Thanks David.

adamshone avatar Feb 18 '16 14:02 adamshone