From 9464aba3dec1fb7be2c705aa43323e844c12d322 Mon Sep 17 00:00:00 2001 From: Ashu Verma Date: Wed, 3 Feb 2021 02:43:27 +0530 Subject: [PATCH] pass default namespace to gerbundleassets inside cdn-map.js (#1805) --- packages/subapp-web/lib/init.js | 3 +++ packages/subapp-web/src/cdn-map.js | 2 +- packages/subapp-web/test/spec/init.spec.js | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/subapp-web/lib/init.js b/packages/subapp-web/lib/init.js index 223ed1144..5c68d8b90 100644 --- a/packages/subapp-web/lib/init.js +++ b/packages/subapp-web/lib/init.js @@ -70,6 +70,8 @@ module.exports = function setup(setupContext) { });`; } + const namespaceScriptJs = namespace ? `window.__default__namespace="${namespace}";` : ""; + const scriptId = namespace ? namespace : "bundle"; const webSubAppJs = `