@gravity-ui/app-builder 0.17.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
- plugins.push(new webpack_plugin_1.default({
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.17.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",