-
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.
Make compiler options which map to a flag case-insensitive again (#17755
- Loading branch information
Showing
5 changed files
with
77 additions
and
2 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
25 changes: 25 additions & 0 deletions
25
tests/baselines/reference/tsconfigMapOptionsAreCaseInsensitive.js
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 @@ | ||
//// [tests/cases/compiler/tsconfigMapOptionsAreCaseInsensitive.ts] //// | ||
|
||
//// [other.ts] | ||
export default 42; | ||
|
||
//// [index.ts] | ||
import Answer from "./other.js"; | ||
const x = 10 + Answer; | ||
export { | ||
x | ||
}; | ||
|
||
//// [other.js] | ||
define(["require", "exports"], function (require, exports) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
exports["default"] = 42; | ||
}); | ||
//// [index.js] | ||
define(["require", "exports", "./other.js"], function (require, exports, other_js_1) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
var x = 10 + other_js_1["default"]; | ||
exports.x = x; | ||
}); |
16 changes: 16 additions & 0 deletions
16
tests/baselines/reference/tsconfigMapOptionsAreCaseInsensitive.symbols
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,16 @@ | ||
=== tests/cases/compiler/other.ts === | ||
export default 42; | ||
No type information for this code. | ||
No type information for this code.=== tests/cases/compiler/index.ts === | ||
import Answer from "./other.js"; | ||
>Answer : Symbol(Answer, Decl(index.ts, 0, 6)) | ||
|
||
const x = 10 + Answer; | ||
>x : Symbol(x, Decl(index.ts, 1, 5)) | ||
>Answer : Symbol(Answer, Decl(index.ts, 0, 6)) | ||
|
||
export { | ||
x | ||
>x : Symbol(x, Decl(index.ts, 2, 8)) | ||
|
||
}; |
18 changes: 18 additions & 0 deletions
18
tests/baselines/reference/tsconfigMapOptionsAreCaseInsensitive.types
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,18 @@ | ||
=== tests/cases/compiler/other.ts === | ||
export default 42; | ||
No type information for this code. | ||
No type information for this code.=== tests/cases/compiler/index.ts === | ||
import Answer from "./other.js"; | ||
>Answer : 42 | ||
|
||
const x = 10 + Answer; | ||
>x : number | ||
>10 + Answer : number | ||
>10 : 10 | ||
>Answer : 42 | ||
|
||
export { | ||
x | ||
>x : number | ||
|
||
}; |
16 changes: 16 additions & 0 deletions
16
tests/cases/compiler/tsconfigMapOptionsAreCaseInsensitive.ts
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,16 @@ | ||
// @filename: tsconfig.json | ||
{ | ||
"compilerOptions": { | ||
"module": "AmD" | ||
} | ||
} | ||
|
||
// @filename: other.ts | ||
export default 42; | ||
|
||
// @filename: index.ts | ||
import Answer from "./other.js"; | ||
const x = 10 + Answer; | ||
export { | ||
x | ||
}; |