[kbn/optimizer] tweak split chunks options (#80444)

Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
Spencer 2020-10-15 14:24:29 -07:00 committed by GitHub
parent 2b380b6583
commit ff32bb1716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,14 @@ export function getWebpackConfig(bundle: Bundle, bundleRefs: BundleRefs, worker:
optimization: {
noEmitOnErrors: true,
splitChunks: {
maxAsyncRequests: 10,
cacheGroups: {
default: {
reuseExistingChunk: false,
},
},
},
},
externals: [UiSharedDeps.externals],