Unverified Commit a1598b52 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Disable `recordsPath` for selective page building (#6997)

We cannot rely on `recordsPath` when using selective page mode. All modules must be identified.
parent 59fb471b
......@@ -184,7 +184,7 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
usedExports: false,
concatenateModules: false,
} : undefined),
recordsPath: path.join(outputPath, 'records.json'),
recordsPath: selectivePageBuilding ? undefined : path.join(outputPath, 'records.json'),
context: dir,
// Kept as function to be backwards compatible
entry: async () => {
......
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