Monitor bundle size of module added on page load

Bug: T360590
Change-Id: Icdd1e38fc6d4015a37a3adccdf6b18ee0c54b687
This commit is contained in:
Jon Robson 2024-09-17 11:54:06 -07:00 committed by Jdlrobson
parent e358e38591
commit 9b9a7ff739
2 changed files with 18 additions and 0 deletions

6
bundlesize.config.json Normal file
View file

@ -0,0 +1,6 @@
[
{
"resourceModule": "ext.popups",
"maxSize": "0.4 kB"
}
]

View file

@ -0,0 +1,12 @@
<?php
namespace MediaWiki\Extensions\Popups\Tests\Structure;
use MediaWiki\Tests\Structure\BundleSizeTestBase;
class BundleSizeTest extends BundleSizeTestBase {
/** @inheritDoc */
public function getBundleSizeConfig(): string {
return dirname( __DIR__, 3 ) . '/bundlesize.config.json';
}
}