From 3f4db5f47481b55cdf0cde88772bdddd1a11d7f7 Mon Sep 17 00:00:00 2001 From: Tim Lai Date: Fri, 18 Sep 2020 11:21:28 -0700 Subject: [PATCH] refactor(build): increase maxEntrypointSize for core-js@3 (#6419) --- webpack/_config-builder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack/_config-builder.js b/webpack/_config-builder.js index ee3af34f..6b5971f1 100644 --- a/webpack/_config-builder.js +++ b/webpack/_config-builder.js @@ -118,7 +118,7 @@ export default function buildConfig( // 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 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"), "lodash": path.resolve(__dirname, "..", "node_modules/lodash") }, @@ -134,8 +134,8 @@ export default function buildConfig( performance: { hints: "error", - maxEntrypointSize: 1024000, - maxAssetSize: 1024000, + maxEntrypointSize: 1072000, + maxAssetSize: 1072000, }, optimization: {