PHP 8.2.30
Preview: lazy-modules.js.map Size: 2.32 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@babel/helper-module-transforms/lib/lazy-modules.js.map

{"version":3,"names":["_core","require","_normalizeAndLoadMetadata","toGetWrapperPayload","lazy","source","metadata","isSideEffectImport","reexportAll","includes","Array","isArray","Error","wrapReference","ref","payload","t","callExpression"],"sources":["../src/lazy-modules.ts"],"sourcesContent":["// TODO: Move `lazy` implementation logic into the CommonJS plugin, since other\n// modules systems do not support `lazy`.\n\nimport { types as t } from \"@babel/core\";\nimport {\n  type SourceModuleMetadata,\n  isSideEffectImport,\n} from \"./normalize-and-load-metadata.ts\";\n\nexport type Lazy = boolean | string[] | ((source: string) => boolean);\n\nexport function toGetWrapperPayload(lazy: Lazy) {\n  return (source: string, metadata: SourceModuleMetadata): null | \"lazy\" => {\n    if (lazy === false) return null;\n    if (isSideEffectImport(metadata) || metadata.reexportAll) return null;\n    if (lazy === true) {\n      // 'true' means that local relative files are eagerly loaded and\n      // dependency modules are loaded lazily.\n      return source.includes(\".\") ? null : \"lazy\";\n    }\n    if (Array.isArray(lazy)) {\n      return !lazy.includes(source) ? null : \"lazy\";\n    }\n    if (typeof lazy === \"function\") {\n      return lazy(source) ? \"lazy\" : null;\n    }\n    throw new Error(`.lazy must be a boolean, string array, or function`);\n  };\n}\n\nexport function wrapReference(\n  ref: t.Identifier,\n  payload: unknown,\n): t.Expression | null {\n  if (payload === \"lazy\") return t.callExpression(ref, []);\n  return null;\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,yBAAA,GAAAD,OAAA;AAOO,SAASE,mBAAmBA,CAACC,IAAU,EAAE;EAC9C,OAAO,CAACC,MAAc,EAAEC,QAA8B,KAAoB;IACxE,IAAIF,IAAI,KAAK,KAAK,EAAE,OAAO,IAAI;IAC/B,IAAI,IAAAG,4CAAkB,EAACD,QAAQ,CAAC,IAAIA,QAAQ,CAACE,WAAW,EAAE,OAAO,IAAI;IACrE,IAAIJ,IAAI,KAAK,IAAI,EAAE;MAGjB,OAAOC,MAAM,CAACI,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,MAAM;IAC7C;IACA,IAAIC,KAAK,CAACC,OAAO,CAACP,IAAI,CAAC,EAAE;MACvB,OAAO,CAACA,IAAI,CAACK,QAAQ,CAACJ,MAAM,CAAC,GAAG,IAAI,GAAG,MAAM;IAC/C;IACA,IAAI,OAAOD,IAAI,KAAK,UAAU,EAAE;MAC9B,OAAOA,IAAI,CAACC,MAAM,CAAC,GAAG,MAAM,GAAG,IAAI;IACrC;IACA,MAAM,IAAIO,KAAK,CAAC,oDAAoD,CAAC;EACvE,CAAC;AACH;AAEO,SAASC,aAAaA,CAC3BC,GAAiB,EACjBC,OAAgB,EACK;EACrB,IAAIA,OAAO,KAAK,MAAM,EAAE,OAAOC,WAAC,CAACC,cAAc,CAACH,GAAG,EAAE,EAAE,CAAC;EACxD,OAAO,IAAI;AACb","ignoreList":[]}

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
1.71 KB lrw-r--r-- 2026-02-28 00:26:54
Edit Download
3.91 KB lrw-r--r-- 2026-02-28 00:27:06
Edit Download
1.67 KB lrw-r--r-- 2026-02-28 00:27:14
Edit Download
3.81 KB lrw-r--r-- 2026-02-28 00:27:26
Edit Download
13.17 KB lrw-r--r-- 2026-02-28 00:27:34
Edit Download
31.27 KB lrw-r--r-- 2026-02-28 00:27:44
Edit Download
1005 B lrw-r--r-- 2026-02-28 00:27:58
Edit Download
2.32 KB lrw-r--r-- 2026-02-28 00:28:00
Edit Download
12.94 KB lrw-r--r-- 2026-02-28 00:28:06
Edit Download
34.12 KB lrw-r--r-- 2026-02-28 00:28:12
Edit Download
13.28 KB lrw-r--r-- 2026-02-28 00:28:18
Edit Download
34.31 KB lrw-r--r-- 2026-02-28 00:28:24
Edit Download
641 B lrw-r--r-- 2026-02-28 00:28:26
Edit Download
1.50 KB lrw-r--r-- 2026-02-28 00:28:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).