Skip to content

Commit

Permalink
test(es/transforms): Add a test for reserved_words pass (#8638)
Browse files Browse the repository at this point in the history
**Related issue:**

 - Closes #7691
  • Loading branch information
kdy1 committed Feb 13, 2024
1 parent 07bbfbd commit a0b77e0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions crates/swc/tests/fixture/issues-7xxx/7691/input/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": true
},
"target": "es3",
"loose": false,
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": true,
}
1 change: 1 addition & 0 deletions crates/swc/tests/fixture/issues-7xxx/7691/input/1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export var int = 1
2 changes: 2 additions & 0 deletions crates/swc/tests/fixture/issues-7xxx/7691/output/1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var _int = 1;
export { _int as int };

0 comments on commit a0b77e0

Please sign in to comment.