-
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.
Allow to combine --resolveJsonModule with --isolatedModules (#28207)
- Loading branch information
Andy
authored
Oct 29, 2018
1 parent
672b0e3
commit 24febc2
Showing
5 changed files
with
39 additions
and
3 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
12 changes: 12 additions & 0 deletions
12
tests/baselines/reference/isolatedModules_resolveJsonModule.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,12 @@ | ||
//// [tests/cases/compiler/isolatedModules_resolveJsonModule.ts] //// | ||
|
||
//// [a.ts] | ||
import j = require("./j.json"); | ||
|
||
//// [j.json] | ||
{} | ||
|
||
|
||
//// [a.js] | ||
"use strict"; | ||
exports.__esModule = true; |
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/isolatedModules_resolveJsonModule.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,8 @@ | ||
=== /a.ts === | ||
import j = require("./j.json"); | ||
>j : Symbol(j, Decl(a.ts, 0, 0)) | ||
|
||
=== /j.json === | ||
{} | ||
No type information for this code. | ||
No type information for this code. |
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/isolatedModules_resolveJsonModule.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,8 @@ | ||
=== /a.ts === | ||
import j = require("./j.json"); | ||
>j : {} | ||
|
||
=== /j.json === | ||
{} | ||
>{} : {} | ||
|
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,8 @@ | ||
// @isolatedModules: true | ||
// @resolveJsonModule: true | ||
|
||
// @Filename: /a.ts | ||
import j = require("./j.json"); | ||
|
||
// @Filename: /j.json | ||
{} |