You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use it with ReactNative 0.61.3.
Adding babel-plugin-require-context-polyfill to babel plugins list does not work (require.context is undefined)
The text was updated successfully, but these errors were encountered:
This plugin was writed to enable isomorphism (same code in both world) between navigator bundled with Webpack and NodeJS. I use it in NodeJS environment to reproduce the native existing function (require.context) in webpack, that I use to bundle navigator and react-native code.
Use it with NodeJS only, for navigator or react-native I recommand you to use Webpack ;)
Not tested with react-native but if you still want to try it, it require babel 7 minimum, here is an example of a working .babelrc that I use:
I'm trying to use it with ReactNative 0.61.3.
Adding
babel-plugin-require-context-polyfill
to babel plugins list does not work (require.context is undefined
)The text was updated successfully, but these errors were encountered: