diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e5b68c844f9..fa31f6e39dc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog ## [unreleased] +### Bug Fixes + + + +- **(es/minifier)** Parse a file as a module only if `opts.module` is `true` (#7943) ([b87ac64](https://github.com/swc-project/swc/commit/b87ac646f81f181b574da798b3e613a3cfa4cad5)) + ### Features diff --git a/Cargo.lock b/Cargo.lock index 17ba6e33e19d..d7b79c18be36 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -235,7 +235,7 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.57.5" +version = "0.57.6" dependencies = [ "anyhow", "console_error_panic_hook", @@ -3525,7 +3525,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.266.5" +version = "0.266.6" dependencies = [ "ansi_term", "anyhow", @@ -3707,7 +3707,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.83.6" +version = "0.83.7" dependencies = [ "anyhow", "binding_macros", @@ -4551,7 +4551,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.191.5" +version = "0.191.6" dependencies = [ "ahash 0.8.3", "anyhow", @@ -4736,7 +4736,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.55.5" +version = "0.55.6" dependencies = [ "anyhow", "dashmap", diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index 363e772a267c..f9eca910668a 100644 --- a/crates/binding_macros/Cargo.toml +++ b/crates/binding_macros/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "binding_macros" repository = "https://github.com/swc-project/swc.git" -version = "0.57.5" +version = "0.57.6" [lib] bench = false @@ -33,7 +33,7 @@ binding_wasm = [ [dependencies] # Common deps for the SWC imports -swc = { optional = true, version = "0.266.5", path = "../swc" } +swc = { optional = true, version = "0.266.6", path = "../swc" } swc_common = { optional = true, version = "0.32.1", path = "../swc_common" } swc_ecma_ast = { optional = true, version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_transforms = { optional = true, version = "0.224.5", path = "../swc_ecma_transforms" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 7c3fff219eaa..4432dd8b424b 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -9,7 +9,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc" repository = "https://github.com/swc-project/swc.git" -version = "0.266.5" +version = "0.266.6" [lib] bench = false diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 22614165628c..893b94dc04b5 100644 --- a/crates/swc_core/Cargo.toml +++ b/crates/swc_core/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_core" repository = "https://github.com/swc-project/swc.git" -version = "0.83.6" +version = "0.83.7" [package.metadata.docs.rs] features = [ "allocator_node", @@ -324,8 +324,8 @@ __visit = ["__ecma", "swc_ecma_visit"] once_cell = { optional = true, version = "1.18.0" } # swc_* dependencies -binding_macros = { optional = true, version = "0.57.5", path = "../binding_macros" } -swc = { optional = true, version = "0.266.5", path = "../swc" } +binding_macros = { optional = true, version = "0.57.6", path = "../binding_macros" } +swc = { optional = true, version = "0.266.6", path = "../swc" } swc_atoms = { optional = true, version = "0.5.9", path = "../swc_atoms" } swc_bundler = { optional = true, version = "0.220.5", path = "../swc_bundler" } swc_cached = { optional = true, version = "0.3.17", path = "../swc_cached" } @@ -358,7 +358,7 @@ swc_ecma_usage_analyzer = { optional = true, version = "0.19.0", path = swc_ecma_utils = { optional = true, version = "0.123.0", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "0.95.1", path = "../swc_ecma_visit" } swc_node_base = { optional = true, version = "0.5.8", path = "../swc_node_base" } -swc_node_bundler = { optional = true, version = "0.55.5", path = "../swc_node_bundler" } +swc_node_bundler = { optional = true, version = "0.55.6", path = "../swc_node_bundler" } swc_nodejs_common = { optional = true, version = "0.0.8", path = "../swc_nodejs_common" } swc_plugin = { optional = true, version = "0.90.0", path = "../swc_plugin" } swc_plugin_macro = { optional = true, version = "0.9.15", path = "../swc_plugin_macro" } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 66bef2480871..dd613fe21cce 100644 --- a/crates/swc_estree_compat/Cargo.toml +++ b/crates/swc_estree_compat/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_estree_compat" repository = "https://github.com/swc-project/swc.git" -version = "0.191.5" +version = "0.191.6" [package.metadata.docs.rs] all-features = true @@ -40,7 +40,7 @@ swc_node_comments = { version = "0.19.1", path = "../swc_node_comments/" } criterion = "0.5" pretty_assertions = "1.3" -swc = { version = "0.266.5", path = "../swc" } +swc = { version = "0.266.6", path = "../swc" } swc_ecma_ast = { version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.224.5", path = "../swc_ecma_transforms/" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index 0d1e2504c4a7..8e326332e9f5 100644 --- a/crates/swc_node_bundler/Cargo.toml +++ b/crates/swc_node_bundler/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_node_bundler" repository = "https://github.com/swc-project/swc.git" -version = "0.55.5" +version = "0.55.6" [lib] bench = false @@ -29,7 +29,7 @@ serde_json = "1" tracing = "0.1.37" string_enum = { version = "0.4.1", path = "../string_enum" } -swc = { version = "0.266.5", path = "../swc" } +swc = { version = "0.266.6", path = "../swc" } swc_atoms = { version = "0.5.9", path = "../swc_atoms" } swc_bundler = { version = "0.220.5", path = "../swc_bundler", features = [ "concurrent",