(path, preserveJsx)
| 358 | } |
| 359 | |
| 360 | export function __rewriteRelativeImportExtension(path, preserveJsx) { |
| 361 | if (typeof path === "string" && /^\.\.?\//.test(path)) { |
| 362 | return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { |
| 363 | return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); |
| 364 | }); |
| 365 | } |
| 366 | return path; |
| 367 | } |
| 368 | |
| 369 | export default { |
| 370 | __extends: __extends, |
no outgoing calls
no test coverage detected
searching dependent graphs…