Skip to content

Commit

Permalink
Update swc (#36269)
Browse files Browse the repository at this point in the history
This PR updates swc crates to swc-project/swc@33e4661



I'll undraft this after verifying some more fixes.


 - Resolves #30237 (reply in thread)
<img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/163984412-cd887458-9507-4f20-9fd9-e0864d3904d7.png">


 - Resolves #30237 (comment)


<img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/163990124-10c7dc62-7613-444b-bffd-69b69c880592.png">
  • Loading branch information
kdy1 committed Apr 21, 2022
1 parent 2bdf1bc commit 9456fc6
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 41 deletions.
45 changes: 22 additions & 23 deletions packages/next-swc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/next-swc/crates/core/Cargo.toml
Expand Up @@ -21,9 +21,9 @@ swc_emotion = {path="../emotion"}
styled_components = {path="../styled_components"}
styled_jsx = {path="../styled_jsx"}
modularize_imports = {path="../modularize_imports"}
swc = "0.168.0"
swc = "0.169.0"
swc_atoms = "0.2.11"
swc_common = { version = "0.17.21", features = ["concurrent", "sourcemap"] }
swc_common = { version = "0.17.22", features = ["concurrent", "sourcemap"] }
swc_ecma_loader = { version = "0.29.1", features = ["node", "lru"] }
swc_ecmascript = { version = "0.147.0", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_cached = "0.1.1"
Expand Down
16 changes: 8 additions & 8 deletions packages/next-swc/crates/core/tests/full/example/output.js
Expand Up @@ -8,21 +8,21 @@ import a from "other";
return function(c) {
if (Array.isArray(c)) return c;
}(c) || function(c, b) {
var g, h, a = null == c ? null : "undefined" != typeof Symbol && c[Symbol.iterator] || c["@@iterator"];
var d, e, a = null == c ? null : "undefined" != typeof Symbol && c[Symbol.iterator] || c["@@iterator"];
if (null != a) {
var d = [], e = !0, i = !1;
var b = [], c = !0, f = !1;
try {
for(a = a.call(c); !(e = (g = a.next()).done) && (d.push(g.value), !b || d.length !== b); e = !0);
} catch (j) {
i = !0, h = j;
for(a = a.call(c); !(c = (d = a.next()).done) && (b.push(d.value), !b || b.length !== b); c = !0);
} catch (g) {
f = !0, e = g;
} finally{
try {
e || null == a.return || a.return();
c || null == a.return || a.return();
} finally{
if (i) throw h;
if (f) throw e;
}
}
return d;
return b;
}
}(c, b) || function(a, d) {
if (a) {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/emotion/Cargo.toml
Expand Up @@ -19,7 +19,7 @@ regex = "1.5"
serde = "1"
sourcemap = "6.0.1"
swc_atoms = "0.2.11"
swc_common = { version = "0.17.21", features = ["concurrent", "sourcemap"] }
swc_common = { version = "0.17.22", features = ["concurrent", "sourcemap"] }
swc_ecmascript = { version = "0.147.0", features = ["codegen", "utils", "visit"] }

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions packages/next-swc/crates/napi/Cargo.toml
Expand Up @@ -17,10 +17,10 @@ next-swc = {version = "0.0.0", path = "../core"}
once_cell = "1.8.0"
serde = "1"
serde_json = "1"
swc = "0.168.0"
swc = "0.169.0"
swc_atoms = "0.2.11"
swc_bundler = { version = "0.137.0", features = ["concurrent"] }
swc_common = { version = "0.17.21", features = ["concurrent", "sourcemap"] }
swc_bundler = { version = "0.137.1", features = ["concurrent"] }
swc_common = { version = "0.17.22", features = ["concurrent", "sourcemap"] }
swc_ecma_loader = { version = "0.29.1", features = ["node", "lru"] }
swc_ecmascript = { version = "0.147.0", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_node_base = "0.5.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/styled_components/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ once_cell = "1.10.0"
regex = {version = "1.5.4", features = ["std", "perf"], default-features = false}
serde = {version = "1.0.130", features = ["derive"]}
swc_atoms = "0.2.11"
swc_common = { version = "0.17.21", features = ["concurrent"] }
swc_common = { version = "0.17.22", features = ["concurrent"] }
swc_ecmascript = { version = "0.147.0", features = ["utils", "visit"] }
tracing = "0.1.32"

Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/styled_jsx/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ version = "0.1.1"

[dependencies]
easy-error = "1.0.0"
swc_common = { version = "0.17.21", features = ["concurrent", "sourcemap"] }
swc_common = { version = "0.17.22", features = ["concurrent", "sourcemap"] }
swc_css = "0.104.1"
swc_css_prefixer = "0.100.4"
swc_ecmascript = { version = "0.147.0", features = ["parser", "minifier", "utils", "visit"] }
Expand Down
4 changes: 2 additions & 2 deletions packages/next-swc/crates/wasm/Cargo.toml
Expand Up @@ -16,8 +16,8 @@ parking_lot_core = "=0.8.0"
path-clean = "0.1"
serde = {version = "1", features = ["derive"]}
serde_json = "1"
swc = "0.168.0"
swc_common = { version = "0.17.21", features = ["concurrent", "sourcemap"] }
swc = "0.169.0"
swc_common = { version = "0.17.22", features = ["concurrent", "sourcemap"] }
swc_ecmascript = { version = "0.147.0", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
tracing = { version = "0.1.32", features = ["release_max_level_off"] }
wasm-bindgen = {version = "0.2", features = ["serde-serialize"]}
Expand Down

0 comments on commit 9456fc6

Please sign in to comment.