-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When TS returns
emitSkipped
, fallback to transpileOnly (#1629)
* When TS returns emitSkipped, fallback to transpileOnly * fix failing windows test
- Loading branch information
Showing
5 changed files
with
51 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This file causes TS to return emitSkipped because it's outside of rootDir and | ||
// it's .js. I assume this happens because the emit path is the same as the | ||
// input path, and perhaps also because the file is classified "external" | ||
|
||
const decorator = () => {}; | ||
|
||
class Foo { | ||
// Using a decorator to prove this .js file is getting compiled | ||
@decorator | ||
method() { | ||
return 'foo'; | ||
} | ||
} | ||
|
||
console.log(new Foo().method()); |
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,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"experimentalDecorators": true, | ||
"rootDir": "rootDir" | ||
} | ||
} |