@plaudit/webpack-extensions 2.50.0 → 2.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,6 +8,7 @@ interface AdvancedOutputConfig {
|
|
|
8
8
|
directoryLayout?: 'blocks' | 'extensions' | 'plain';
|
|
9
9
|
assumeGlobalizedPlauditLibraries?: boolean;
|
|
10
10
|
externalize?: Required<Configuration>['output']['library'];
|
|
11
|
+
bundleAnalyzer?: boolean;
|
|
11
12
|
}
|
|
12
13
|
type PlauditWordpressWebpackConfig = {
|
|
13
14
|
standaloneBlocks?: boolean;
|
|
@@ -298,6 +298,9 @@ function processIndividualWebpackConfig(config, webpackConfig, sources, sharedCa
|
|
|
298
298
|
})
|
|
299
299
|
?? [];
|
|
300
300
|
plugins.splice(0, 0, new PackageConfigSanityChecker_1.PackageConfigSanityChecker());
|
|
301
|
+
if (typeof dest !== 'string' && dest.bundleAnalyzer) {
|
|
302
|
+
plugins.splice(0, 0, new (require("webpack-bundle-analyzer").BundleAnalyzerPlugin)({ analyzerMode: 'static' }));
|
|
303
|
+
}
|
|
301
304
|
if (process.env["NO_TS_CHECKER"] !== "true") {
|
|
302
305
|
const include = (Array.isArray(srcRoot) ? srcRoot : [srcRoot])
|
|
303
306
|
.filter(sr => node_path_1.default.extname(sr).length === 0 || scriptOrStyleTest(sr, scriptExtension) === "script")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaudit/webpack-extensions",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.51.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"/build"
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"postcss-load-config": "^4.0.2",
|
|
27
27
|
"postcss-loader": "^7.3.4",
|
|
28
28
|
"ts-node": "^10.9.2",
|
|
29
|
-
"typescript": "^5.8.3"
|
|
29
|
+
"typescript": "^5.8.3",
|
|
30
|
+
"webpack-bundle-analyzer": "^4.10.2"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"@plaudit/postcss-color-function": "^5.0.0",
|