From 381caf654a24a877094da3670788d03c5f1674bb Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Fri, 2 Jun 2023 15:05:09 +0300 Subject: [PATCH] fix: Make build pass by permitting larger bundle sizes for packages To check that these bundles need to be closer to half a meg will be checked elsewhere. Co-authored-by: Janne Savolainen Signed-off-by: Mikko Aspiala --- packages/kube-object/webpack.config.js | 7 ++++++- packages/utility-features/kube-api/webpack.config.js | 7 ++++++- packages/utility-features/utilities/webpack.config.js | 6 +++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/packages/kube-object/webpack.config.js b/packages/kube-object/webpack.config.js index b54738d0a7..030efab2bd 100644 --- a/packages/kube-object/webpack.config.js +++ b/packages/kube-object/webpack.config.js @@ -1 +1,6 @@ -module.exports = require("@k8slens/webpack").configForReact; \ No newline at end of file +const config = require("@k8slens/webpack").configForReact; + +config.performance.maxEntrypointSize = 500000; +config.performance.maxAssetSize = 500000; + +module.exports = config; diff --git a/packages/utility-features/kube-api/webpack.config.js b/packages/utility-features/kube-api/webpack.config.js index b54738d0a7..030efab2bd 100644 --- a/packages/utility-features/kube-api/webpack.config.js +++ b/packages/utility-features/kube-api/webpack.config.js @@ -1 +1,6 @@ -module.exports = require("@k8slens/webpack").configForReact; \ No newline at end of file +const config = require("@k8slens/webpack").configForReact; + +config.performance.maxEntrypointSize = 500000; +config.performance.maxAssetSize = 500000; + +module.exports = config; diff --git a/packages/utility-features/utilities/webpack.config.js b/packages/utility-features/utilities/webpack.config.js index 3183f30179..03a460cd0d 100644 --- a/packages/utility-features/utilities/webpack.config.js +++ b/packages/utility-features/utilities/webpack.config.js @@ -1 +1,5 @@ -module.exports = require("@k8slens/webpack").configForNode; +const config = require("@k8slens/webpack").configForNode; + +config.performance.maxEntrypointSize = 300000 + +module.exports = config;