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

Update to swc_core 0.75.x #12

Merged
merged 1 commit into from
May 1, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
304 changes: 130 additions & 174 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]
serde = "1.0.156"
serde_json = "1.0.94"
swc_core = { version = "0.69.5", features = ["common", "ecma_ast"] }
serde = "1.0.160"
serde_json = "1.0.96"
swc_core = { version = "0.75.42", features = ["common", "ecma_ast"] }
6 changes: 3 additions & 3 deletions crates/debug_label/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib", "rlib"]

[dependencies]
common = { path = "../common" }
swc_core = { version = "0.69.5", features = [
swc_core = { version = "0.75.42", features = [
"ecma_ast",
"ecma_parser",
"ecma_utils",
Expand All @@ -20,9 +20,9 @@ swc_core = { version = "0.69.5", features = [
] }

[dev-dependencies]
swc_core = { version = "0.69.5", features = [
swc_core = { version = "0.75.42", features = [
"ecma_plugin_transform",
"ecma_transforms_react",
"testing_transform",
] }
testing = "0.31.39"
testing = "0.33.6"
3 changes: 2 additions & 1 deletion crates/debug_label/tests/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ fn test(input: PathBuf) {
}),
..Default::default()
},
top_level_mark
top_level_mark,
unresolved_mark
)
)
},
Expand Down
36 changes: 15 additions & 21 deletions crates/debug_label/tests/fixtures/nextjs-app-page/output.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
import { Provider } from "jotai";
function MyApp({ Component, pageProps }) {
return /*#__PURE__*/ React.createElement(
Provider,
{
__source: {
fileName: "input.js",
lineNumber: 5,
columnNumber: 5,
},
__self: this,
},
/*#__PURE__*/ React.createElement(
Component,
_extends({}, pageProps, {
function MyApp({ Component , pageProps }) {
return /*#__PURE__*/ React.createElement(Provider, {
__source: {
fileName: "input.js",
lineNumber: 6,
columnNumber: 7,
fileName: "input.js",
lineNumber: 5,
columnNumber: 5
},
__self: this,
})
)
);
__self: this
}, /*#__PURE__*/ React.createElement(Component, {
...pageProps,
__source: {
fileName: "input.js",
lineNumber: 6,
columnNumber: 7
},
__self: this
}));
}
_c = MyApp;
export default MyApp;
Expand Down
6 changes: 3 additions & 3 deletions crates/react_refresh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ crate-type = ["cdylib", "rlib"]

[dependencies]
common = { path = "../common" }
swc_core = { version = "0.69.5", features = [
swc_core = { version = "0.75.42", features = [
"ecma_ast",
"ecma_quote",
"ecma_parser",
Expand All @@ -18,9 +18,9 @@ swc_core = { version = "0.69.5", features = [
] }

[dev-dependencies]
swc_core = { version = "0.69.5", features = [
swc_core = { version = "0.75.42", features = [
"ecma_plugin_transform",
"ecma_transforms_react",
"testing_transform",
] }
testing = "0.31.39"
testing = "0.33.6"
3 changes: 2 additions & 1 deletion crates/react_refresh/tests/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ fn test(input: PathBuf) {
}),
..Default::default()
},
top_level_mark
top_level_mark,
unresolved_mark
),
)
},
Expand Down
36 changes: 15 additions & 21 deletions crates/react_refresh/tests/fixtures/nextjs-app-page/output.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
import { Provider } from "jotai";
function MyApp({ Component, pageProps }) {
return /*#__PURE__*/ React.createElement(
Provider,
{
__source: {
fileName: "input.js",
lineNumber: 5,
columnNumber: 5,
},
__self: this,
},
/*#__PURE__*/ React.createElement(
Component,
_extends({}, pageProps, {
function MyApp({ Component , pageProps }) {
return /*#__PURE__*/ React.createElement(Provider, {
__source: {
fileName: "input.js",
lineNumber: 6,
columnNumber: 7,
fileName: "input.js",
lineNumber: 5,
columnNumber: 5
},
__self: this,
})
)
);
__self: this
}, /*#__PURE__*/ React.createElement(Component, {
...pageProps,
__source: {
fileName: "input.js",
lineNumber: 6,
columnNumber: 7
},
__self: this
}));
}
_c = MyApp;
export default MyApp;
Expand Down