diff --git a/react-packager/src/ModuleGraph/worker/collect-dependencies.js b/react-packager/src/ModuleGraph/worker/collect-dependencies.js index df82ea23..37e44725 100644 --- a/react-packager/src/ModuleGraph/worker/collect-dependencies.js +++ b/react-packager/src/ModuleGraph/worker/collect-dependencies.js @@ -139,5 +139,5 @@ exports.forOptimization = collectDependencies( ast, new ProdReplacement(names), - dependencyMapName && types.identifier(dependencyMapName), + dependencyMapName ? types.identifier(dependencyMapName) : undefined, );