未验证 提交 3e5adfee 编写于 作者: J Joe Haddad 提交者: GitHub

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

上级 ed1207f7
......@@ -142,7 +142,7 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
}
})
] : undefined
} : {
} : Object.assign({
runtimeChunk: __selectivePageBuilding ? false : {
name: CLIENT_STATIC_FILES_RUNTIME_WEBPACK
},
......@@ -186,7 +186,11 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
}
})
] : undefined,
},
}, __selectivePageBuilding ? {
providedExports: false,
usedExports: false,
concatenateModules: false,
} : undefined),
recordsPath: path.join(outputPath, 'records.json'),
context: dir,
// Kept as function to be backwards compatible
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册