From 7f3224b619419d92830d73b244b5ed55f8c5b1b6 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Mon, 16 Dec 2024 11:09:26 +0100 Subject: [PATCH] Clean up bundlesize config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This follows up the parent change, where I think I misunderstood the bundlesize configs. The configs in bundlesize.config.json and package.json are separate, and the latter became unused by kicking out npm bundlesize; but I think that can be addressed by merging it into the former. The size has to be a bit larger to pass CI – I assume because it now includes styles, messages, and types.json as well. Bug: T382192 Bug: T360590 Change-Id: I91dcf50e3ea7d4dcb68189b63a1a0d60368dccf9 --- bundlesize.config.json | 4 ++++ package.json | 8 +------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bundlesize.config.json b/bundlesize.config.json index 5e5d4c5c4..984f294bf 100644 --- a/bundlesize.config.json +++ b/bundlesize.config.json @@ -2,5 +2,9 @@ { "resourceModule": "ext.popups", "maxSize": "0.4 kB" + }, + { + "resourceModule": "ext.popups.main", + "maxSize": "20.0 kB" } ] diff --git a/package.json b/package.json index c1cf23f7e..a2d10c7a6 100644 --- a/package.json +++ b/package.json @@ -65,11 +65,5 @@ "wdio-mediawiki": "2.3.0", "webpack": "5.89.0", "webpack-cli": "5.1.4" - }, - "bundlesize": [ - { - "path": "resources/dist/index.js", - "maxSize": "13.5kB" - } - ] + } }