-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite rather than shim literal-argument require/import calls
- Loading branch information
1 parent
35c6438
commit 4c9557c
Showing
9 changed files
with
105 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/baselines/reference/emitModuleCommonJS(module=commonjs).errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
a.js(4,11): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
a.js(5,10): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
b.ts(3,10): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
|
||
|
||
==== a.js (2 errors) ==== | ||
{ | ||
require("" + "./foo.ts"); | ||
import("" + "./foo.ts"); | ||
require("./foo.ts"); | ||
~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
import("./foo.ts"); | ||
~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
} | ||
|
||
==== b.ts (1 errors) ==== | ||
{ | ||
import("" + "./foo.ts"); | ||
import("./foo.ts"); | ||
~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/baselines/reference/emitModuleCommonJS(module=nodenext).errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
a.js(4,11): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
a.js(5,10): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
b.ts(3,10): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
|
||
|
||
==== a.js (2 errors) ==== | ||
{ | ||
require("" + "./foo.ts"); | ||
import("" + "./foo.ts"); | ||
require("./foo.ts"); | ||
~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
import("./foo.ts"); | ||
~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
} | ||
|
||
==== b.ts (1 errors) ==== | ||
{ | ||
import("" + "./foo.ts"); | ||
import("./foo.ts"); | ||
~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations. | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters