Skip to content

Commit

Permalink
fix(bundler): Fix name of helper (#2518)
Browse files Browse the repository at this point in the history
swc_bundler:
 - Use correct name for helpers. (#2517)
  • Loading branch information
kdy1 authored Oct 23, 2021
1 parent 430a06c commit 5afedf8
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"]
license = "Apache-2.0/MIT"
name = "swc_bundler"
repository = "https://github.com/swc-project/swc.git"
version = "0.75.1"
version = "0.75.2"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
Expand Down
2 changes: 1 addition & 1 deletion bundler/src/bundler/helpers/_require.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;

if (cache) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
2 changes: 1 addition & 1 deletion node/bundler/tests/pass/cjs/common-library/output/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
2 changes: 1 addition & 1 deletion node/bundler/tests/pass/cjs/conditional/output/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
2 changes: 1 addition & 1 deletion node/bundler/tests/pass/cjs/mixed/output/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
2 changes: 1 addition & 1 deletion node/bundler/tests/pass/cjs/nested/output/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
2 changes: 1 addition & 1 deletion node/bundler/tests/pass/issue-1225/cjs/output/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
2 changes: 1 addition & 1 deletion node/bundler/tests/pass/issue-1225/esm/output/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
2 changes: 1 addition & 1 deletion node/bundler/tests/pass/issue-1328/case1/output/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down
2 changes: 1 addition & 1 deletion node/bundler/tests/pass/resolve-name-fix/output/entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __spack_require__(mod) {
function __swcpack_require__(mod) {
var cache;
if (cache) {
return cache;
Expand Down

1 comment on commit 5afedf8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 5afedf8 Previous: 430a06c Ratio
base_tr_fixer 28431 ns/iter (± 6146) 23949 ns/iter (± 311) 1.19
base_tr_resolver_and_hygiene 150950 ns/iter (± 24950) 131482 ns/iter (± 24905) 1.15
codegen_es2015 54962 ns/iter (± 7374) 53734 ns/iter (± 218) 1.02
codegen_es2016 54570 ns/iter (± 6030) 53949 ns/iter (± 293) 1.01
codegen_es2017 56025 ns/iter (± 8919) 52965 ns/iter (± 388) 1.06
codegen_es2018 56778 ns/iter (± 12805) 53947 ns/iter (± 326) 1.05
codegen_es2019 56372 ns/iter (± 13269) 53055 ns/iter (± 313) 1.06
codegen_es2020 57890 ns/iter (± 13153) 53722 ns/iter (± 341) 1.08
codegen_es3 54556 ns/iter (± 8255) 53302 ns/iter (± 289) 1.02
codegen_es5 55746 ns/iter (± 7656) 53527 ns/iter (± 348) 1.04
config_for_file 16558 ns/iter (± 3340) 12358 ns/iter (± 5646) 1.34
full_es2015 194599496 ns/iter (± 19390407) 176439233 ns/iter (± 5275858) 1.10
full_es2016 144168319 ns/iter (± 16551533) 139467992 ns/iter (± 6121905) 1.03
full_es2017 149752947 ns/iter (± 22658814) 143858180 ns/iter (± 10700807) 1.04
full_es2018 150208408 ns/iter (± 17293264) 142386461 ns/iter (± 6143800) 1.05
full_es2019 146190416 ns/iter (± 14899804) 141508396 ns/iter (± 7070939) 1.03
full_es2020 147037912 ns/iter (± 16473965) 141988552 ns/iter (± 6834870) 1.04
full_es3 227500081 ns/iter (± 43800138) 208379374 ns/iter (± 19486369) 1.09
full_es5 209827104 ns/iter (± 18746029) 194202081 ns/iter (± 12298466) 1.08
parser 679315 ns/iter (± 108775) 648244 ns/iter (± 15449) 1.05
transforms_es2015 1162979 ns/iter (± 264981) 949583 ns/iter (± 34824) 1.22
transforms_es2016 718619 ns/iter (± 250306) 536849 ns/iter (± 39724) 1.34
transforms_es2017 671057 ns/iter (± 105344) 527287 ns/iter (± 12086) 1.27
transforms_es2018 659639 ns/iter (± 122640) 522129 ns/iter (± 15382) 1.26
transforms_es2019 643020 ns/iter (± 90066) 502594 ns/iter (± 20599) 1.28
transforms_es2020 644255 ns/iter (± 110036) 495241 ns/iter (± 21559) 1.30
transforms_es3 1212524 ns/iter (± 201176) 1082374 ns/iter (± 33731) 1.12
transforms_es5 1089768 ns/iter (± 123382) 940742 ns/iter (± 35149) 1.16
ser_ast_node 144 ns/iter (± 19) 146 ns/iter (± 3) 0.99
ser_serde 168 ns/iter (± 33) 158 ns/iter (± 4) 1.06
emit_colors 8104808 ns/iter (± 5902636) 14603824 ns/iter (± 19225846) 0.55
emit_large 103094430 ns/iter (± 158361987) 93506321 ns/iter (± 144450067) 1.10
base_clone 2421850 ns/iter (± 361232) 2337209 ns/iter (± 45857) 1.04
fold_span 4158561 ns/iter (± 608234) 3890219 ns/iter (± 65180) 1.07
fold_span_panic 4436664 ns/iter (± 824774) 4138683 ns/iter (± 130384) 1.07
visit_mut_span 2977643 ns/iter (± 398845) 2848316 ns/iter (± 41839) 1.05
visit_mut_span_panic 2909240 ns/iter (± 434015) 2926154 ns/iter (± 111242) 0.99
boxing_boxed 145 ns/iter (± 23) 143 ns/iter (± 0) 1.01
boxing_boxed_clone 72 ns/iter (± 16) 68 ns/iter (± 0) 1.06
boxing_unboxed 181 ns/iter (± 27) 131 ns/iter (± 0) 1.38
boxing_unboxed_clone 66 ns/iter (± 10) 63 ns/iter (± 0) 1.05

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.