-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(es/utils): Rewrite inject_after_super (#9496)
- Loading branch information
1 parent
4b85a92
commit c562cfa
Showing
118 changed files
with
318 additions
and
592 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
swc_ecma_utils: patch | ||
--- | ||
|
||
perf(es/utils): Rewrite inject_after_super |
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
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/fixture/issues-2xxx/2021/es2016/output/index.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
var _define_property = require("@swc/helpers/_/_define_property"); | ||
class Item extends Component { | ||
constructor(props){ | ||
super(props); | ||
_define_property._(this, "input", this.props.item); | ||
super(props), _define_property._(this, "input", this.props.item); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/fixture/issues-2xxx/2021/es2017/output/index.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
var _define_property = require("@swc/helpers/_/_define_property"); | ||
class Item extends Component { | ||
constructor(props){ | ||
super(props); | ||
_define_property._(this, "input", this.props.item); | ||
super(props), _define_property._(this, "input", this.props.item); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/fixture/issues-2xxx/2021/es2018/output/index.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
var _define_property = require("@swc/helpers/_/_define_property"); | ||
class Item extends Component { | ||
constructor(props){ | ||
super(props); | ||
_define_property._(this, "input", this.props.item); | ||
super(props), _define_property._(this, "input", this.props.item); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/fixture/issues-2xxx/2021/es2019/output/index.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
var _define_property = require("@swc/helpers/_/_define_property"); | ||
class Item extends Component { | ||
constructor(props){ | ||
super(props); | ||
_define_property._(this, "input", this.props.item); | ||
super(props), _define_property._(this, "input", this.props.item); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/fixture/issues-2xxx/2021/es2020/output/index.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
var _define_property = require("@swc/helpers/_/_define_property"); | ||
class Item extends Component { | ||
constructor(props){ | ||
super(props); | ||
_define_property._(this, "input", this.props.item); | ||
super(props), _define_property._(this, "input", this.props.item); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/fixture/issues-2xxx/2021/es2021/output/index.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
var _define_property = require("@swc/helpers/_/_define_property"); | ||
class Item extends Component { | ||
constructor(props){ | ||
super(props); | ||
_define_property._(this, "input", this.props.item); | ||
super(props), _define_property._(this, "input", this.props.item); | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/fixture/issues-2xxx/2021/full/output/index.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
var _define_property = require("@swc/helpers/_/_define_property"); | ||
class Item extends Component { | ||
constructor(props){ | ||
super(props); | ||
_define_property._(this, "input", this.props.item); | ||
super(props), _define_property._(this, "input", this.props.item); | ||
} | ||
} |
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
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
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map
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
Oops, something went wrong.