Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump swc #8135

Merged
merged 6 commits into from May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
181 changes: 49 additions & 132 deletions Cargo.lock

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions packages/core/core/src/Dependency.js
Expand Up @@ -86,14 +86,7 @@ export function createDependency(
}

export function mergeDependencies(a: Dependency, b: Dependency): void {
let {
meta,
symbols,
needsStableName,
isEntry,
isOptional,
...other
} = b;
let {meta, symbols, needsStableName, isEntry, isOptional, ...other} = b;
Object.assign(a, other);
Object.assign(a.meta, meta);
if (a.symbols && symbols) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/integration-tests/test/javascript.js
Expand Up @@ -5540,7 +5540,7 @@ describe('javascript', function () {
name: 'BuildError',
diagnostics: [
{
message: md`Failed to resolve '@swc/helpers' from '${normalizePath(
message: md`Failed to resolve '${'@swc/helpers/lib/_class_call_check.js'}' from '${normalizePath(
require.resolve('@parcel/transformer-js/src/JSTransformer.js'),
)}'`,
origin: '@parcel/core',
Expand Down
4 changes: 2 additions & 2 deletions packages/transformers/js/core/Cargo.toml
Expand Up @@ -9,14 +9,14 @@ crate-type = ["rlib"]

[dependencies]
swc_ecmascript = { version = "0.157.0", features = ["parser", "transforms", "module", "optimization", "react", "typescript", "utils", "visit", "codegen", "utils", "preset_env"] }
swc_common = { version = "0.18.5", features = ["tty-emitter", "sourcemap"] }
swc_common = { version = "0.18.7", features = ["tty-emitter", "sourcemap"] }
swc_atoms = "0.2.11"
indoc = "1.0.3"
serde = "1.0.123"
serde_bytes = "0.11.5"
Inflector = "0.11.4"
data-encoding = "2.3.2"
sha-1 = "0.9.4"
sha-1 = "0.10.0"
dunce = "1.0.1"
pathdiff = "0.2.0"
path-slash = "0.1.4"
12 changes: 4 additions & 8 deletions packages/transformers/js/core/src/hoist.rs
Expand Up @@ -3824,8 +3824,7 @@ mod tests {
code,
indoc! {r#"
import "abc:other";
$abc$importAsync$70a00e0a8474f72a.then((x)=>x.foo
);
$abc$importAsync$70a00e0a8474f72a.then((x)=>x.foo);
"#}
);

Expand All @@ -3850,8 +3849,7 @@ mod tests {
code,
indoc! {r#"
import "abc:other";
$abc$importAsync$70a00e0a8474f72a.then((x)=>x
);
$abc$importAsync$70a00e0a8474f72a.then((x)=>x);
"#}
);

Expand All @@ -3876,8 +3874,7 @@ mod tests {
code,
indoc! {r#"
import "abc:other";
$abc$importAsync$70a00e0a8474f72a.then(({ foo: foo })=>foo
);
$abc$importAsync$70a00e0a8474f72a.then(({ foo: foo })=>foo);
"#}
);

Expand All @@ -3902,8 +3899,7 @@ mod tests {
code,
indoc! {r#"
import "abc:other";
$abc$importAsync$70a00e0a8474f72a.then(({ foo: bar })=>bar
);
$abc$importAsync$70a00e0a8474f72a.then(({ foo: bar })=>bar);
"#}
);

Expand Down
2 changes: 1 addition & 1 deletion packages/transformers/js/package.json
Expand Up @@ -35,7 +35,7 @@
"@parcel/source-map": "^2.0.0",
"@parcel/utils": "2.5.0",
"@parcel/workers": "2.5.0",
"@swc/helpers": "^0.3.13",
"@swc/helpers": "^0.3.15",
"browserslist": "^4.6.6",
"detect-libc": "^1.0.3",
"nullthrows": "^1.1.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/transformers/js/wasm/Cargo.toml
Expand Up @@ -13,7 +13,3 @@ parcel-js-swc-core = { path = "../core" }
serde = "1"
serde-wasm-bindgen = "0.3.0"
wasm-bindgen = "0.2"

# https://github.com/Amanieu/parking_lot/issues/269
[target.'cfg(target_arch = "wasm32")'.dependencies]
parking_lot_core = "=0.8.0"
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2327,10 +2327,10 @@
"@swc/core-win32-ia32-msvc" "^1.2.106"
"@swc/core-win32-x64-msvc" "^1.2.106"

"@swc/helpers@^0.3.13":
version "0.3.13"
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.3.13.tgz#b9af856aaa3804fefdd1544632dde35b7b6ff978"
integrity sha512-A1wswJhnqaLRn8uYVQ8YiNTtY5i/JIPmV08EXXjjTresIkUVUEUaFv/wXVhGXfRNYMvHPkuoMR1Nb6NgpxGjNg==
"@swc/helpers@^0.3.15":
version "0.3.15"
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.3.15.tgz#02abb377c91c39e0a6034f1161870c18621b9129"
integrity sha512-rpZHDdzwhfe06gF98SUAi7TfI344zKb1Pd2D9gxUMTNnhMobDHrv2UiVVcbDXmkx84U5AaXJmBrmfT9g1TPasQ==
dependencies:
tslib "^2.4.0"

Expand Down