MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / loadScript

Method loadScript

packages/utils/src/asset.ts:262–267  ·  view source on GitHub ↗
(content: string | undefined | null, isUrl?: boolean, scriptType?: string)

Source from the content-addressed store, hash-verified

260 }
261
262 private loadScript(content: string | undefined | null, isUrl?: boolean, scriptType?: string) {
263 if (!content) {
264 return;
265 }
266 return isUrl ? load(content, scriptType) : evaluate(content, scriptType);
267 }
268
269 // todo 补充类型
270 async loadAsyncLibrary(asyncLibraryMap: Record<string, any>) {

Callers 1

loadMethod · 0.95

Calls 2

loadFunction · 0.90
evaluateFunction · 0.90

Tested by

no test coverage detected