@gravity-ui/app-builder 0.33.2 → 0.33.3

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) {
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.3",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",