Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 489b416

Browse files
committed
Upgrade parcel-css and swc
1 parent 93c4157 commit 489b416

File tree

4 files changed

+34
-35
lines changed

4 files changed

+34
-35
lines changed

compiler/Cargo.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ url = "2.2.2"
2525

2626
# parcel css
2727
cssparser = "0.29.2"
28-
parcel_css = "1.0.0-alpha.22"
28+
parcel_css = "1.0.0-alpha.23"
2929
parcel_sourcemap = "2.0.2"
3030

3131
# swc
3232
# docs: https://swc.rs
3333
# crate: https://crates.io/search?q=swc_ecmascript
3434
swc_atoms = "0.2.11"
35-
swc_common = { version = "0.17.21", features = ["sourcemap"] }
36-
swc_ecma_transforms = { version = "0.142.0", features = ["proposal", "typescript", "react" ] }
37-
swc_ecmascript = { version = "0.143.0", features = ["codegen", "parser", "utils", "visit"] }
35+
swc_common = { version = "0.17.23", features = ["sourcemap"] }
36+
swc_ecma_transforms = { version = "0.145.0", features = ["proposal", "typescript", "react" ] }
37+
swc_ecmascript = { version = "0.147.0", features = ["codegen", "parser", "utils", "visit"] }
3838

3939
# wasm-bindgen
4040
# docs: https://rustwasm.github.io/docs/wasm-bindgen

compiler/src/css.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct Drafts {
8181
pub fn compile<'i>(filename: String, code: &'i str, config: &Config) -> Result<TransformResult, CompileError<'i>> {
8282
let drafts = config.drafts.as_ref();
8383
let mut stylesheet = StyleSheet::parse(
84-
filename.clone(),
84+
&filename,
8585
&code,
8686
ParserOptions {
8787
nesting: matches!(drafts, Some(d) if d.nesting),

compiler/src/swc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ fn get_es_config(jsx: bool) -> EsConfig {
260260
EsConfig {
261261
fn_bind: true,
262262
export_default_from: true,
263-
import_assertions: true,
264-
static_blocks: true,
263+
import_assertions: true,
265264
private_in_object: true,
266265
allow_super_outside_method: true,
267266
jsx,

0 commit comments

Comments
 (0)