Skip to content

Commit

Permalink
[breaking] Turn off providesModuleNodeModules by default
Browse files Browse the repository at this point in the history
Sets the default value of `providesModuleNodeModules` to an empty array, since Haste is going away from RN. **This is a breaking change and metro and metro-config's major semver needs to be bumped.**

Test Plan: Modify my copy of metro-config under RN so that `providesModuleNodeModules` defaults to an empty array, start the packager with `--reset-cache`, and load the RNTester bundle successfully.
  • Loading branch information
ide committed May 31, 2019
1 parent 654b0df commit 212e5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metro-config/src/defaults/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports.moduleSystem = require.resolve('metro/src/lib/polyfills/require.js');

exports.platforms = ['ios', 'android', 'windows', 'web'];

exports.providesModuleNodeModules = ['react-native', 'react-native-windows'];
exports.providesModuleNodeModules = [];

exports.DEFAULT_METRO_MINIFIER_PATH = 'metro-minify-uglify';

Expand Down

0 comments on commit 212e5ec

Please sign in to comment.