From 544805266b54c9444ee4e2bc5bf3460aae1edbe4 Mon Sep 17 00:00:00 2001 From: cflmy Date: Tue, 22 Sep 2026 15:27:09 +0800 Subject: [PATCH] fix(wasm): mark marqdo-bridge.js as ESM for Node consumers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The canonical bridge uses ESM exports but, with no package.json in scope, Node loads untyped .js as CommonJS — tests/wasm/smoke.mjs could not see applyDomPatch et al (Named export not found). Scope type=module to the js dir only; marqdo wasm build copies just the single .js file, so nothing ships differently. Co-authored-by: Cursor --- crates/marqdo-wasm/js/package.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 crates/marqdo-wasm/js/package.json diff --git a/crates/marqdo-wasm/js/package.json b/crates/marqdo-wasm/js/package.json new file mode 100644 index 0000000..5df6ffd --- /dev/null +++ b/crates/marqdo-wasm/js/package.json @@ -0,0 +1,5 @@ +{ + "name": "marqdo-bridge", + "private": true, + "type": "module" +}