refactor(build): increase maxEntrypointSize for core-js@3 (#6419)

This commit is contained in:
Tim Lai
2020-09-18 11:21:28 -07:00
committed by GitHub
parent 20beb4b950
commit 3f4db5f474

View File

@@ -118,7 +118,7 @@ export default function buildConfig(
// these aliases make sure that we don't bundle same libraries twice // these aliases make sure that we don't bundle same libraries twice
// when the versions of these libraries diverge between swagger-js and swagger-ui // when the versions of these libraries diverge between swagger-js and swagger-ui
alias: { alias: {
"@babel/runtime-corejs2": path.resolve(__dirname, "..", "node_modules/@babel/runtime-corejs2"), "@babel/runtime-corejs3": path.resolve(__dirname, "..", "node_modules/@babel/runtime-corejs3"),
"js-yaml": path.resolve(__dirname, "..", "node_modules/js-yaml"), "js-yaml": path.resolve(__dirname, "..", "node_modules/js-yaml"),
"lodash": path.resolve(__dirname, "..", "node_modules/lodash") "lodash": path.resolve(__dirname, "..", "node_modules/lodash")
}, },
@@ -134,8 +134,8 @@ export default function buildConfig(
performance: { performance: {
hints: "error", hints: "error",
maxEntrypointSize: 1024000, maxEntrypointSize: 1072000,
maxAssetSize: 1024000, maxAssetSize: 1072000,
}, },
optimization: { optimization: {