@blocklet/pages-kit 0.5.51 → 0.5.52

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.
@@ -33,6 +33,7 @@ import CustomComponentRenderer from '../components/CustomComponentRenderer';
33
33
  import { BuiltinModulesGlobalVariableName, ChunksMountPointGlobalVariableName, RelativeModulesGlobalVariableName, } from '../types/builtin';
34
34
  import { isRelativeModule } from './typescript/builtin-module-transformer';
35
35
  const { getComponentMountPoint } = utils;
36
+ const SKIP_SETUP_IMPORT_MAP = true;
36
37
  // Initialize ES Module Shims before any imports
37
38
  export function injectGlobalComponents() {
38
39
  const win = window || {};
@@ -126,8 +127,10 @@ export function injectGlobalComponents() {
126
127
  return null;
127
128
  },
128
129
  };
129
- // create importmap
130
130
  const setupImportMap = async () => {
131
+ if (SKIP_SETUP_IMPORT_MAP) {
132
+ return;
133
+ }
131
134
  const modulesResolved = {};
132
135
  // 确保 modules 的 value 中的所有 promise 都加载为 es module
133
136
  await Promise.all(Object.entries(win[BuiltinModulesGlobalVariableName].modules).map(async ([modulePath, moduleContent]) => {