@blocklet/pages-kit 0.5.51 → 0.5.53

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.
@@ -62,6 +62,7 @@ const CustomComponentRenderer_1 = __importDefault(require("../components/CustomC
62
62
  const builtin_1 = require("../types/builtin");
63
63
  const builtin_module_transformer_1 = require("./typescript/builtin-module-transformer");
64
64
  const { getComponentMountPoint } = utils;
65
+ const SKIP_SETUP_IMPORT_MAP = true;
65
66
  // Initialize ES Module Shims before any imports
66
67
  function injectGlobalComponents() {
67
68
  const win = window || {};
@@ -155,8 +156,10 @@ function injectGlobalComponents() {
155
156
  return null;
156
157
  },
157
158
  };
158
- // create importmap
159
159
  const setupImportMap = async () => {
160
+ if (SKIP_SETUP_IMPORT_MAP) {
161
+ return;
162
+ }
160
163
  const modulesResolved = {};
161
164
  // 确保 modules 的 value 中的所有 promise 都加载为 es module
162
165
  await Promise.all(Object.entries(win[builtin_1.BuiltinModulesGlobalVariableName].modules).map(async ([modulePath, moduleContent]) => {