-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
39 additions
and
6 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
6 changes: 6 additions & 0 deletions
6
crates/swc_fast_ts_strip/tests/errors/export-equals.swc-stderr
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,6 @@ | ||
x TypeScript export assignment is not supported in strip-only mode | ||
,-[2:1] | ||
1 | | ||
2 | export = 1; | ||
: ^^^^^^^^^^^ | ||
`---- |
5 changes: 5 additions & 0 deletions
5
crates/swc_fast_ts_strip/tests/errors/import-equals.swc-stderr
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,5 @@ | ||
x TypeScript import equals declaration is not supported in strip-only mode | ||
,---- | ||
1 | import foo = require("foo"); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- |
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
14 changes: 14 additions & 0 deletions
14
crates/swc_fast_ts_strip/tests/errors/parameter-property.swc-stderr
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,14 @@ | ||
x TypeScript parameter property is not supported in strip-only mode | ||
,-[5:1] | ||
4 | class Foo { | ||
5 | constructor(public id: string) { } | ||
: ^^^^^^^^^^ | ||
6 | } | ||
`---- | ||
x TypeScript parameter property is not supported in strip-only mode | ||
,-[10:1] | ||
9 | class Bar { | ||
10 | constructor(private id: string) { } | ||
: ^^^^^^^^^^ | ||
11 | } | ||
`---- |
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 @@ | ||
x TypeScript namespace declaration is not supported in strip-only mode | ||
,-[3:1] | ||
2 | | ||
3 | ,-> module Foo { | ||
4 | | export const foo = 1; | ||
5 | `-> } | ||
`---- |
7 changes: 7 additions & 0 deletions
7
crates/swc_fast_ts_strip/tests/errors/ts-namespace.swc-stderr
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 @@ | ||
x TypeScript namespace declaration is not supported in strip-only mode | ||
,-[3:1] | ||
2 | | ||
3 | ,-> namespace Foo { | ||
4 | | export const foo = 1; | ||
5 | `-> } | ||
`---- |