Skip to content

Commit

Permalink
Add a test for swc-project#1438
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 19, 2021
1 parent 57385f2 commit 8f826dd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spack/tests/pass/issue-1438/case1/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"jsc": {
"parser": {
"syntax": "typescript"
}
},
"sourceMaps": true
}
5 changes: 5 additions & 0 deletions spack/tests/pass/issue-1438/case1/input/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function add(...args: number[]): number {
return args.reduce((acc, v) => acc + v, 0);
}

console.log(add(1, 2, 3, 4));
1 change: 1 addition & 0 deletions src/cli/swc-cli
Submodule swc-cli added at 92df67

0 comments on commit 8f826dd

Please sign in to comment.