swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(plugin): avoid importing __free from env (#11908) **Description:** - Treat `__free` in plugin memory interop as the linked allocator symbol from `swc_plugin::allocation`, not an `env` host import. - Stop injecting `env::__free` from the Wasm plugin runtime import object. - This fixes the regression from swc-project/swc#11783 where `__free` was accidentally treated like a dynamic host import. **Related issue:** Related to swc-project/swc#11783. - Closes https://github.com/swc-project/swc/issues/11907
main
11 hours ago
Create light-eagles-wish.md
kdy1/fix-free-wasm-import
12 hours ago
fix(encoding): Fix incorrect items count
quininer:x/fix-encoding-count
12 hours ago
refactor(plugin): remove explicit env wasm import module
kdy1/remove-wasm-env-link
13 hours ago
fix(encoding): Fix incorrect items count
quininer:x/fix-encoding-count
13 hours ago
fix(swc): preserve plugin error context (#11904) **Description:** Preserve the full `anyhow` context chain when reporting SWC Wasm plugin transform failures. Previously plugin errors were reported with `err.to_string()`, which only retained the outermost context. This made ABI/runtime failures hard to diagnose because the diagnostic that reaches consumers such as Rspack could stop at `failed to invoke plugin on ...`. This now reports plugin errors with `format!("{err:#}")`, so the compact context chain is preserved. **Error report comparison:** For a plugin instantiation failure caused by a missing `env.__free` import: Before: ```text failed to invoke plugin on 'Some("src/index.jsx")' ``` After: ```text failed to invoke plugin on 'Some("src/index.jsx")': failed to invoke `@swc/plugin-remove-console` as js transform plugin at @swc/plugin-remove-console: unknown import: `env::__free` has not been defined ```
main
13 hours ago
chore: Update changeset
hardfist:codex/plugin-error-chain
15 hours ago
chore: Add changeset
hardfist:codex/plugin-error-chain
15 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(plugin): avoid importing __free from env
#11908
12 hours ago
b3ed437
kdy1/fix-free-wasm-import
CodSpeed Performance Gauge
0%
fix(encoding): Fix incorrect fields count
#11905
13 hours ago
013d364
quininer:x/fix-encoding-count
CodSpeed Performance Gauge
0%
refactor(plugin): remove explicit env wasm import module
#11906
13 hours ago
32d5ed3
kdy1/remove-wasm-env-link
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs