Unverified Commit 3e5adfee authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Turn off module opts when selective page building (#6903)

parent ed1207f7
...@@ -142,7 +142,7 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug = ...@@ -142,7 +142,7 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
} }
}) })
] : undefined ] : undefined
} : { } : Object.assign({
runtimeChunk: __selectivePageBuilding ? false : { runtimeChunk: __selectivePageBuilding ? false : {
name: CLIENT_STATIC_FILES_RUNTIME_WEBPACK name: CLIENT_STATIC_FILES_RUNTIME_WEBPACK
}, },
...@@ -186,7 +186,11 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug = ...@@ -186,7 +186,11 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
} }
}) })
] : undefined, ] : undefined,
}, }, __selectivePageBuilding ? {
providedExports: false,
usedExports: false,
concatenateModules: false,
} : undefined),
recordsPath: path.join(outputPath, 'records.json'), recordsPath: path.join(outputPath, 'records.json'),
context: dir, context: dir,
// Kept as function to be backwards compatible // Kept as function to be backwards compatible
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment