Skip to content

Commit

Permalink
feat: update swc_core to 0.99 (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Jul 18, 2024
1 parent 25a1da2 commit 35ffc3f
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 57 deletions.
123 changes: 71 additions & 52 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ serde_json = "1"
serde-inline-default = "0.2.0"
regex = "1"
lazy_static = "1"
swc_core = { version = "0.96", features = [
swc_core = { version = "0.99", features = [
"ecma_plugin_transform",
"ecma_parser",
] }

ts-rs = "9"

[dev-dependencies]
testing = "0.36"
testing = "0.38"
# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
# cargo build-wasm32 generates wasm32-unknown-unknown binary.
2 changes: 1 addition & 1 deletion src/loader_utils/interpolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct Options<'a> {
/// other digestTypes, i. e. hex, base32, base64
/// and length the length in chars
/// - `[hash]` the hash of options.content (Buffer) (by default it's the hex digest of the xxhash64 hash)
/// In loader context `[hash]` and `[contenthash]` are the same, but we recommend using `[contenthash]` for avoid misleading.
/// In loader context `[hash]` and `[contenthash]` are the same, but we recommend using `[contenthash]` for avoid misleading.
///
/// # Examples
///
Expand Down
4 changes: 2 additions & 2 deletions tests/fixture.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use std::{env, fs, path::PathBuf};

use swc_core::ecma::{
parser::{EsConfig, Syntax},
parser::{EsSyntax, Syntax},
transforms::testing::test_fixture,
visit::as_folder,
};
use swc_plugin_css_modules::{Config, Injector};

fn syntax() -> Syntax {
Syntax::Es(EsConfig {
Syntax::Es(EsSyntax {
jsx: true,
..Default::default()
})
Expand Down

0 comments on commit 35ffc3f

Please sign in to comment.