From 9b9a7ff7399f25436299f1c57e80848faad4ae6f Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Tue, 17 Sep 2024 11:54:06 -0700 Subject: [PATCH] Monitor bundle size of module added on page load Bug: T360590 Change-Id: Icdd1e38fc6d4015a37a3adccdf6b18ee0c54b687 --- bundlesize.config.json | 6 ++++++ tests/phpunit/structure/BundleSizeTest.php | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 bundlesize.config.json create mode 100644 tests/phpunit/structure/BundleSizeTest.php diff --git a/bundlesize.config.json b/bundlesize.config.json new file mode 100644 index 000000000..5e5d4c5c4 --- /dev/null +++ b/bundlesize.config.json @@ -0,0 +1,6 @@ +[ + { + "resourceModule": "ext.popups", + "maxSize": "0.4 kB" + } +] diff --git a/tests/phpunit/structure/BundleSizeTest.php b/tests/phpunit/structure/BundleSizeTest.php new file mode 100644 index 000000000..e721bdb65 --- /dev/null +++ b/tests/phpunit/structure/BundleSizeTest.php @@ -0,0 +1,12 @@ +