Disable recordsPath for selective page building (#6997)

We cannot rely on `recordsPath` when using selective page mode. All modules must be identified.
This commit is contained in:
Joe Haddad 2019-04-10 12:23:16 -04:00 committed by GitHub
parent 59fb471bc6
commit a1598b5285
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 () => {