@gravity-ui/app-builder 0.33.2 → 0.33.4-beta.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.
@@ -976,7 +976,10 @@ function configureCommonPlugins(options, bundlerPlugins) {
976
976
  let actualRemotes = originalRemotes;
977
977
  if (!actualRemotes && remotes && enabledRemotes) {
978
978
  // Remove micro-frontend name from public path
979
- const commonPublicPath = config.browserPublicPath.replace(`${name}/`, '');
979
+ const mfNamePos = config.browserPublicPath.lastIndexOf(`${name}/`);
980
+ const commonPublicPath = mfNamePos === -1
981
+ ? config.browserPublicPath
982
+ : config.browserPublicPath.slice(0, mfNamePos);
980
983
  let remoteFile;
981
984
  if (disableManifest) {
982
985
  if (remotesRuntimeVersioning) {
@@ -1054,7 +1057,20 @@ function configureCommonPlugins(options, bundlerPlugins) {
1054
1057
  }
1055
1058
  if (config.analyzeBundle === 'rsdoctor') {
1056
1059
  plugins.push(new bundlerPlugins.RSDoctorPlugin({
1057
- mode: 'brief',
1060
+ output: {
1061
+ mode: 'brief',
1062
+ reportDir: path.resolve(options.buildDirectory, 'rsdoctor'),
1063
+ options: {
1064
+ type: ['html', 'json'],
1065
+ htmlOptions: {
1066
+ reportHtmlName: 'report.html',
1067
+ writeDataJson: true,
1068
+ },
1069
+ jsonOptions: {
1070
+ fileName: 'report.json',
1071
+ },
1072
+ },
1073
+ },
1058
1074
  }));
1059
1075
  }
1060
1076
  if (config.sentryConfig) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.33.2",
3
+ "version": "0.33.4-beta.0",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -71,8 +71,8 @@
71
71
  "@module-federation/enhanced": "^0.18.0",
72
72
  "@okikio/sharedworker": "^1.0.7",
73
73
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
74
- "@rsdoctor/rspack-plugin": "^1.0.2",
75
- "@rsdoctor/webpack-plugin": "^1.0.2",
74
+ "@rsdoctor/rspack-plugin": "^1.3.3",
75
+ "@rsdoctor/webpack-plugin": "^1.3.3",
76
76
  "@rspack/core": "1.5.5",
77
77
  "@rspack/dev-server": "^1.1.4",
78
78
  "@rspack/plugin-react-refresh": "^1.5.1",