mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
added a missing commonjs()
This commit is contained in:
@@ -271,9 +271,7 @@ function getCommonJsConfig(bundleType) {
|
||||
case NODE_PROD:
|
||||
return {};
|
||||
case RN:
|
||||
return {
|
||||
ignore: ignoreReactNativeModules(),
|
||||
};
|
||||
return {};
|
||||
case FB_DEV:
|
||||
case FB_PROD:
|
||||
// Modules we don't want to inline in the bundle.
|
||||
@@ -481,6 +479,10 @@ function getPlugins(entry, babelOpts, paths, filename, bundleType, isRenderer, m
|
||||
// needs to happen after strip env
|
||||
commonjs(getCommonJsConfig(bundleType))
|
||||
);
|
||||
} else {
|
||||
plugins.push(
|
||||
commonjs(getCommonJsConfig(bundleType))
|
||||
);
|
||||
}
|
||||
// this needs to come last or it doesn't report sizes correctly
|
||||
plugins.push(
|
||||
|
||||
Reference in New Issue
Block a user