mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
added a missing commonjs()
This commit is contained in:
1 parent
c31950084c
commit
845052292a
1 file changed
+5
-3
@@ -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