@next-core/brick-container 2.94.6 → 2.94.8

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.
package/dist/preview.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"/><base href="<!--# echo var='base_href' default='/' -->"/><script>window.DEVELOPER_PREVIEW = true;</script><link href="preview.169f79b5c16f9d480543.css" rel="stylesheet"></head><body><div id="preview-root"><div id="main-mount-point"></div><div id="bg-mount-point" style="display: none"></div><div id="portal-mount-point"></div></div><script src="dll.be08f567.js"></script><script src="polyfill.5f60d909121d6c84d42d.js"></script><script src="preview.e567ac2e3de7bb4a6d0a.js"></script></body></html>
1
+ <!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"/><base href="<!--# echo var='base_href' default='/' -->"/><script>window.DEVELOPER_PREVIEW = true;</script><link href="preview.cc41c022ffed4f3fc8c5.css" rel="stylesheet"></head><body><div id="preview-root"><div id="main-mount-point"></div><div id="bg-mount-point" style="display: none"></div><div id="portal-mount-point"></div></div><script src="dll.be08f567.js"></script><script src="polyfill.5f60d909121d6c84d42d.js"></script><script src="preview.e567ac2e3de7bb4a6d0a.js"></script></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/brick-container",
3
- "version": "2.94.6",
3
+ "version": "2.94.8",
4
4
  "description": "Brick Container Server",
5
5
  "homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/brick-container",
6
6
  "license": "GPL-3.0",
@@ -73,5 +73,5 @@
73
73
  "webpack-dev-server": "^4.11.1",
74
74
  "webpack-merge": "^5.8.0"
75
75
  },
76
- "gitHead": "4b9388f46079189ece2e8cbe7aceeaa7976f8098"
76
+ "gitHead": "4c4c6bee4bb80f48748578fe9bb53e3bf2eb5996"
77
77
  }
@@ -72,6 +72,7 @@ const injectIndexHtml = (standaloneConfig, env, content) => {
72
72
  : `w.BOOTSTRAP_FILE=a+"-/bootstrap${
73
73
  standaloneConfig.bootstrapPathPrefix ?? ""
74
74
  }.${standaloneConfig.bootstrapHash}.json"`,
75
+ standaloneConfig.unionAppRoot ?? "",
75
76
  standaloneConfig.bootstrapUnionFilePath ?? "",
76
77
  standaloneConfig.appRootTpl ?? "",
77
78
  standaloneConfig.publicDeps
@@ -463,6 +463,10 @@ module.exports = (env, getRawIndexHtml) => {
463
463
  }
464
464
  const appRoot = JSON.parse(appRootMatches[1]);
465
465
 
466
+ const unionAppRoot = raw.match(
467
+ /\b(var\s*\w+\s*=\s*w\.UNION_APP_ROOT\s*=\s*[^;]*\s*;)/
468
+ )?.[1];
469
+
466
470
  const bootstrapUnionMatches = raw.match(
467
471
  /\b(w\.BOOTSTRAP_UNION_FILE\s*=\s*[^;]*\s*;)/
468
472
  );
@@ -538,6 +542,7 @@ module.exports = (env, getRawIndexHtml) => {
538
542
  bootstrapHash,
539
543
  bootstrapFilePath,
540
544
  bootstrapPathPrefix,
545
+ unionAppRoot,
541
546
  bootstrapUnionFilePath,
542
547
  appRootTpl,
543
548
  publicDeps,
@@ -556,6 +561,7 @@ module.exports = (env, getRawIndexHtml) => {
556
561
  bootstrapHash,
557
562
  bootstrapPathPrefix,
558
563
  bootstrapFilePath,
564
+ unionAppRoot,
559
565
  bootstrapUnionFilePath,
560
566
  publicDeps,
561
567
  appRootTpl,