@gravity-ui/app-builder 0.16.5-beta.0 → 0.17.1
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.
|
@@ -861,7 +861,7 @@ function configureCommonPlugins(options, bundlerPlugins) {
|
|
|
861
861
|
}
|
|
862
862
|
if (config.analyzeBundle === 'statoscope') {
|
|
863
863
|
const customStatoscopeConfig = config.statoscopeConfig || {};
|
|
864
|
-
|
|
864
|
+
const statoscopePlugin = new webpack_plugin_1.default({
|
|
865
865
|
saveReportTo: path.resolve(options.buildDirectory, 'report.html'),
|
|
866
866
|
saveStatsTo: path.resolve(options.buildDirectory, 'stats.json'),
|
|
867
867
|
open: false,
|
|
@@ -869,7 +869,12 @@ function configureCommonPlugins(options, bundlerPlugins) {
|
|
|
869
869
|
all: true,
|
|
870
870
|
},
|
|
871
871
|
...customStatoscopeConfig,
|
|
872
|
-
})
|
|
872
|
+
});
|
|
873
|
+
// TIP: statoscope doesn't support rspack, but this workaround helps to run it
|
|
874
|
+
if (config.bundler === 'rspack') {
|
|
875
|
+
statoscopePlugin.extensions = [];
|
|
876
|
+
}
|
|
877
|
+
plugins.push(statoscopePlugin);
|
|
873
878
|
}
|
|
874
879
|
if (config.analyzeBundle === 'rsdoctor') {
|
|
875
880
|
plugins.push(new bundlerPlugins.RSDoctorPlugin({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/app-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Develop and build your React client-server projects, powered by typescript and webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@rsdoctor/webpack-plugin": "^0.4.13",
|
|
75
75
|
"@rspack/core": "1.2.3",
|
|
76
76
|
"@rspack/dev-server": "^1.0.10",
|
|
77
|
-
"@rspack/plugin-react-refresh": "^1.0.
|
|
77
|
+
"@rspack/plugin-react-refresh": "^1.0.1",
|
|
78
78
|
"@statoscope/webpack-plugin": "^5.28.2",
|
|
79
79
|
"@svgr/core": "^8.1.0",
|
|
80
80
|
"@svgr/plugin-jsx": "^8.1.0",
|