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

feat: update swc_core to 0.87 #308

Merged
merged 1 commit into from
Dec 12, 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
432 changes: 138 additions & 294 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ regex = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
swc_cached = "0.3"
swc_core = { version = "0.86", features = ["ecma_plugin_transform"] }
swc_core = { version = "0.87", features = ["ecma_plugin_transform"] }

# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
Expand Down
19 changes: 0 additions & 19 deletions src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,6 @@ import './index.less';
import './index.main.css';
import { Button } from 'uiw';
import { Select } from '@uiw/core';
"#,
r#"
import { Button } from 'uiw';
import { Select } from '@uiw/core';
"#
);

Expand All @@ -214,8 +210,6 @@ import './index.less';
import './index.main.css';
import { Button } from 'uiw';
import { Select } from '@uiw/core';
"#,
r#"
"#
);

Expand All @@ -229,9 +223,6 @@ test!(
r#"
import 'foo';
import Foo from 'foo';
"#,
r#"
import Foo from 'foo';
"#
);

Expand All @@ -247,10 +238,6 @@ require('./index.less');
require('./index.main.css');
const uiw = require('uiw');
const core = require('@uiw/core');
"#,
r#"
const uiw = require('uiw');
const core = require('@uiw/core');
"#
);

Expand All @@ -267,9 +254,6 @@ require('./index.main.css');
const uiw = require('uiw');
const core = require('@uiw/core');
const test = "test";
"#,
r#"
const test = "test";
"#
);

Expand All @@ -283,8 +267,5 @@ test!(
r#"
require('foo');
const foo = require('foo');
"#,
r#"
const foo = require('foo');
"#
);
1 change: 1 addition & 0 deletions tests/__swc_snapshots__/src/transform.rs/effects.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import Foo from 'foo';
2 changes: 2 additions & 0 deletions tests/__swc_snapshots__/src/transform.rs/example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { Button } from 'uiw';
import { Select } from '@uiw/core';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const foo = require('foo');
2 changes: 2 additions & 0 deletions tests/__swc_snapshots__/src/transform.rs/require_example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const uiw = require('uiw');
const core = require('@uiw/core');
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const test = "test";