From c5c18699921cd45021f8c130eecdc09099c26878 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 30 Sep 2024 21:25:30 +0200 Subject: [PATCH] fix: precompile preserve SVG camelCase attributes (#25945) See https://github.com/denoland/deno_ast/pull/278 Fixes https://github.com/denoland/deno/issues/25810 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- tests/specs/npm/require_type_commonjs/main.out | 14 ++++---------- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 92a3c5056c..945e493486 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1273,9 +1273,9 @@ dependencies = [ [[package]] name = "deno_ast" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b08d11d9e4086b00d3428650e31153cf5896586411763cb88a6423ce5b18791" +checksum = "89ea2fd038c9c7e3e87e624fd708303cd33f39c33707f6c48fa9a65d65fefc47" dependencies = [ "base64 0.21.7", "deno_media_type", diff --git a/Cargo.toml b/Cargo.toml index 4ce3105399..ce333c728b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ license = "MIT" repository = "https://github.com/denoland/deno" [workspace.dependencies] -deno_ast = { version = "=0.42.0", features = ["transpiling"] } +deno_ast = { version = "=0.42.1", features = ["transpiling"] } deno_core = { version = "0.311.0" } deno_bench_util = { version = "0.162.0", path = "./bench_util" } diff --git a/tests/specs/npm/require_type_commonjs/main.out b/tests/specs/npm/require_type_commonjs/main.out index f7a81572c3..d715db8a94 100644 --- a/tests/specs/npm/require_type_commonjs/main.out +++ b/tests/specs/npm/require_type_commonjs/main.out @@ -1,10 +1,4 @@ -error: Uncaught (in promise) SyntaxError: Unexpected token 'export' - at Object.evalContext (ext:core/01_core.js:[WILDCARD]) - at wrapSafe (node:module:[WILDCARD]) - at Module._compile (node:module:[WILDCARD]) - at Object.Module._extensions..js (node:module:[WILDCARD]) - at Module.load (node:module:[WILDCARD]) - at Function.Module._load (node:module:[WILDCARD]) - at Module.require (node:module:[WILDCARD]) - at require (node:module:[WILDCARD]) - at file:///[WILDCARD]/@denotest/type-commonjs/1.0.0/index.js:3:13 +error: 'import', and 'export' cannot be used outside of module code at file://[WILDCARD]/@denotest/type-commonjs/1.0.0/index.js:1:1 + + export {}; + ~~~~~~