@gravity-ui/app-builder 0.33.1 → 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.
|
@@ -955,7 +955,7 @@ function configureCommonPlugins(options, bundlerPlugins) {
|
|
|
955
955
|
contextReplacements.forEach(({ resourceRegExp, newResource }) => plugins.push(new bundlerPlugins.ContextReplacementPlugin(resourceRegExp, newResource)));
|
|
956
956
|
if (config.polyfill?.process) {
|
|
957
957
|
plugins.push(new bundlerPlugins.ProvidePlugin({
|
|
958
|
-
process: 'process/browser.js',
|
|
958
|
+
process: require.resolve('process/browser.js'),
|
|
959
959
|
}));
|
|
960
960
|
}
|
|
961
961
|
if (config.monaco) {
|
|
@@ -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
|
|
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) {
|