























@@ -13,12 +13,12 @@ import {
1313type BundledChannelPluginMetadata,
1414} from "../../plugins/bundled-channel-runtime.js";
1515import { normalizePluginsConfig } from "../../plugins/config-state.js";
16-import {
17-getCachedPluginJitiLoader,
18-type PluginJitiLoaderCache,
19-} from "../../plugins/jiti-loader-cache.js";
2016import { passesManifestOwnerBasePolicy } from "../../plugins/manifest-owner-policy.js";
2117import { unwrapDefaultModuleExport } from "../../plugins/module-export.js";
18+import {
19+getCachedPluginModuleLoader,
20+type PluginModuleLoaderCache,
21+} from "../../plugins/plugin-module-loader-cache.js";
2222import type { PluginRuntime } from "../../plugins/runtime/types.js";
2323import { normalizeOptionalLowercaseString } from "../../shared/string-coerce.js";
2424import { resolveBundledChannelRootScope, type BundledChannelRootScope } from "./bundled-root.js";
@@ -94,7 +94,7 @@ type BundledChannelLoadContext = {
9494const log = createSubsystemLogger("channels");
9595const MAX_BUNDLED_CHANNEL_LOAD_CONTEXTS = 32;
9696const bundledChannelLoadContextsByRoot = new Map<string, BundledChannelLoadContext>();
97-const sourceBundledEntryLoaderCache: PluginJitiLoaderCache = new Map();
97+const sourceBundledEntryLoaderCache: PluginModuleLoaderCache = new Map();
98989999function isSourceModulePath(modulePath: string): boolean {
100100return /\.(?:c|m)?tsx?$/iu.test(modulePath);
@@ -223,7 +223,7 @@ function loadGeneratedBundledChannelModule(params: {
223223if (!isSourceModulePath(modulePath)) {
224224throw error;
225225}
226-const loader = getCachedPluginJitiLoader({
226+const loader = getCachedPluginModuleLoader({
227227cache: sourceBundledEntryLoaderCache,
228228 modulePath,
229229importerUrl: import.meta.url,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。