xpe 1.0.5 → 1.0.6

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.
@@ -26,8 +26,11 @@ function loadRuntimeEngine() {
26
26
  if (runtimeEngineModule)
27
27
  return Promise.resolve(runtimeEngineModule);
28
28
  if (!runtimeEngineModulePromise) {
29
- const runtimeEnginePath = "./runtime-engine.js";
30
- runtimeEngineModulePromise = import(runtimeEnginePath).then((module) => {
29
+ // Keep a literal dynamic import so Vite/Rollup bundles the runtime engine
30
+ // into a deployable child chunk instead of leaving a missing relative URL
31
+ // in the host's optimized dependency directory.
32
+ // @ts-expect-error Vite/Rollup resolves the query-suffixed runtime chunk at build time.
33
+ runtimeEngineModulePromise = import("./runtime-engine.js?xpe-runtime").then((module) => {
31
34
  runtimeEngineModule = module;
32
35
  return runtimeEngineModule;
33
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpe",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "下一代微前端应用运行底座",
5
5
  "type": "module",
6
6
  "license": "MIT",