Skip to content

Commit 63e5096

Browse files
committed
accept change to amdLoader in merge
1 parent 43ea880 commit 63e5096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks-internal/modules/amdLoader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ export function updateAmdLoader(referenceFile: string, files: IReferences, loade
157157
// Remove common path and replace with absolute outDir
158158
file = file.replace(commonPath, outDir);
159159

160-
// remove ts extension '.ts':
161-
file = file.substr(0, file.length - 3);
160+
// remove extension '.ts' / '.tsx':
161+
file = file.substr(0, file.lastIndexOf('.'));
162162

163163
// Make relative to amd loader
164164
file = utils.makeRelativePath(loaderPath, file);

0 commit comments

Comments
 (0)