Skip to content

Commit c4cde74

Browse files
committed
Missed update
1 parent 27b2192 commit c4cde74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tslib.es6.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ export function __disposeResources(env) {
350350

351351
export function __rewriteRelativeImportExtension(path, preserveJsx) {
352352
if (typeof path === "string" && /^\.\.?\//.test(path)) {
353-
return path.replace(/\.(tsx)$|(\.d)?(\.[^./]+?)?\.([cm])?ts$/i, function (m, tsx, d, ext, cm) {
354-
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (ext && !cm || !ext) ? m : ((d || "") + (ext || "") + "." + (cm || "").toLowerCase() + "js");
353+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
354+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
355355
});
356356
}
357357
return path;

tslib.es6.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ export function __disposeResources(env) {
349349

350350
export function __rewriteRelativeImportExtension(path, preserveJsx) {
351351
if (typeof path === "string" && /^\.\.?\//.test(path)) {
352-
return path.replace(/\.(tsx)$|(\.d)?(\.[^./]+?)?\.([cm])?ts$/i, function (m, tsx, d, ext, cm) {
353-
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (ext && !cm || !ext) ? m : ((d || "") + (ext || "") + "." + (cm || "").toLowerCase() + "js");
352+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
353+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
354354
});
355355
}
356356
return path;

0 commit comments

Comments
 (0)