1 line
4.9 KiB
Plaintext
1 line
4.9 KiB
Plaintext
{"version":3,"sources":["../../../../src/build/webpack/plugins/jsconfig-paths-plugin.ts"],"names":["hasZeroOrOneAsteriskCharacter","pathIsRelative","tryParsePattern","findBestPatternMatch","matchPatternOrExact","isString","matchedText","patternText","JsConfigPathsPlugin","log","debug","asterisk","str","seenAsterisk","i","length","charCodeAt","testPath","test","pattern","indexOfStar","indexOf","undefined","prefix","slice","suffix","isPatternMatch","candidate","startsWith","endsWith","values","getPattern","matchedValue","longestMatchPrefixLength","v","patternStrings","patterns","patternString","push","_","text","substring","forEachBail","array","iterator","callback","next","loop","err","result","NODE_MODULES_REGEX","constructor","paths","resolvedBaseUrl","jsConfigPlugin","apply","resolver","target","ensureHook","getHook","tapAsync","request","resolveContext","pathsKeys","Object","keys","moduleName","path","match","posix","isAbsolute","process","platform","win32","matchedPattern","matchedStar","matchedPatternText","triedPaths","subst","pathCallback","curPath","replace","join","obj","assign","doResolve","resolverErr","resolverResult"],"mappings":"AAAA;;;;CAIC;;;;;;;;;;;;;;;;;;;;;;IAceA,6BAA6B;eAA7BA;;IAkBAC,cAAc;eAAdA;;IAIAC,eAAe;eAAfA;;IAoBAC,oBAAoB;eAApBA;;IA4BAC,mBAAmB;eAAnBA;;IAsBAC,QAAQ;eAARA;;IAQAC,WAAW;eAAXA;;IAOAC,WAAW;eAAXA;;IA2CHC,mBAAmB;eAAnBA;;;6DAnKI;uBAEK;;;;;;AAEtB,MAAMC,MAAMC,IAAAA,YAAK,EAAC;AAOlB,MAAMC,WAAW;AAEV,SAASX,8BAA8BY,GAAW;IACvD,IAAIC,eAAe;IACnB,IAAK,IAAIC,IAAI,GAAGA,IAAIF,IAAIG,MAAM,EAAED,IAAK;QACnC,IAAIF,IAAII,UAAU,CAACF,OAAOH,UAAU;YAClC,IAAI,CAACE,cAAc;gBACjBA,eAAe;YACjB,OAAO;gBACL,6BAA6B;gBAC7B,OAAO;YACT;QACF;IACF;IACA,OAAO;AACT;AAKO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