1 line
3.2 KiB
Plaintext
1 line
3.2 KiB
Plaintext
{"version":3,"sources":["../../src/build/load-entrypoint.ts"],"names":["loadEntrypoint","PACKAGE_ROOT","path","normalize","join","__dirname","TEMPLATE_FOLDER","TEMPLATES_ESM_FOLDER","entrypoint","replacements","injections","filepath","resolve","file","fs","readFile","count","replaceAll","_","fromRequest","importRequest","relative","replace","startsWith","Error","JSON","stringify","replaced","Set","RegExp","Object","keys","map","k","match","key","parse","add","matches","size","length","difference","filter","has","injected"],"mappings":";;;;+BA0BsBA;;;eAAAA;;;iEA1BP;6DACE;;;;;;AAEjB,6DAA6D;AAC7D,MAAMC,eAAeC,aAAI,CAACC,SAAS,CAACD,aAAI,CAACE,IAAI,CAACC,WAAW;AACzD,MAAMC,kBAAkBJ,aAAI,CAACE,IAAI,CAACC,WAAW;AAC7C,MAAME,uBAAuBL,aAAI,CAACC,SAAS,CACzCD,aAAI,CAACE,IAAI,CAACC,WAAW;AAmBhB,eAAeL,eACpBQ,UAMe,EACfC,YAA6C,EAC7CC,UAAmC;IAEnC,MAAMC,WAAWT,aAAI,CAACU,OAAO,CAC3BV,aAAI,CAACE,IAAI,CAACG,sBAAsB,CAAC,EAAEC,WAAW,GAAG,CAAC;IAGpD,IAAIK,OAAO,MAAMC,iBAAE,CAACC,QAAQ,CAACJ,UAAU;IAEvC,4EAA4E;IAC5E,4DAA4D;IAC5D,IAAIK,QAAQ;IACZH,OAAOA,KAAKI,UAAU,CACpB,sCACA,SAAUC,CAAC,EAAEC,WAAW,EAAEC,aAAa;QACrCJ;QAEA,MAAMK,WAAWnB,aAAI,CAClBmB,QAAQ,CACPpB,cACAC,aAAI,CAACU,OAAO,CAACN,iBAAiBa,eAAeC,eAE/C,2DAA2D;SAC1DE,OAAO,CAAC,OAAO;QAElB,0EAA0E;QAC1E,uEAAuE;QACvE,oCAAoC;QACpC,IAAI,CAACD,SAASE,UAAU,CAAC,UAAU;YACjC,MAAM,IAAIC,MACR,CAAC,kEAAkE,EAAEH,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