UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

1 lines • 759 B
{"version":3,"file":"toServerOutputPath.js","names":[],"sources":["esm/utils/toServerOutputPath.js"],"sourcesContent":["import { posix } from \"node:path\";\nfunction toServerOutputPath(input, outDir) {\n const normalized = input.replace(/\\\\/g, \"/\");\n const prefix = `${outDir}/server/`;\n if (normalized === `${outDir}/server` || normalized.startsWith(prefix)) {\n return normalized;\n }\n return posix.join(outDir, \"server\", normalized);\n}\nexport {\n toServerOutputPath\n};\n//# sourceMappingURL=toServerOutputPath.js.map\n"],"mappings":";;;AACA,SAAS,mBAAmB,OAAO,QAAQ;CACzC,MAAM,aAAa,MAAM,QAAQ,OAAO,GAAG;CAC3C,MAAM,SAAS,GAAG,OAAO;CACzB,IAAI,eAAe,GAAG,OAAO,YAAY,WAAW,WAAW,MAAM,GAAG;EACtE,OAAO;CACT;CACA,OAAO,MAAM,KAAK,QAAQ,UAAU,UAAU;AAChD"}