Skip to content Skip to sidebar Skip to footer

Webpack In Production: Why React Native Errors?

I have a test app with the following installed: 'dependencies': { 'express': '^4.14.0', 'react': '^15.3.2', 'react-dom': '^15.3.2' }, 'devDependencies': { 'babel': '^6.5.2'

Solution 1:

Use DefinePlugin Instead of ProvidePlugin. That's the plugin used for this use case.

I don't understand what triggered those errors though. I think react does contain some code that are specific to react-native.

Post a Comment for "Webpack In Production: Why React Native Errors?"