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

Feature Request: Add option to customize sourceExts

Open mgarabedian opened this issue 4 years ago • 2 comments

One of the packages I am using utilizes a 'cjs' file type. I made the update for react native in metro.config.js, in resolver -> sourceExts. However, it looks like the plugin bundles via hardcoded codeExts. It would be nice to be able to customize these, or somehow import from the metro config file.

mgarabedian avatar Jun 25 '21 23:06 mgarabedian

I added cjs to the hardcorded exts in 0.7.3.

Configurable sourceExts sounds nice but currently this lib needs customized logic for each exts so it may not be worth the cost.

inokawa avatar Jun 26 '21 02:06 inokawa

Thanks, understandable. Currently I am running a forked version that hardcodes the config I required, including the resolver blacklist ( blacklistRE ). Blacklisting is required for my setup, and am copying that code from metro.config.js in the plugin.

mgarabedian avatar Jun 26 '21 02:06 mgarabedian