Skip to content

Commit 3a7b746

Browse files
committed
Revert bundler target specific default transformations
`webpack` now supports the reference type proposal.
1 parent f1d60ab commit 3a7b746

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

CHANGELOG.md

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
* Optimized ABI performance for `Option<{i32,u32,isize,usize,f32,*const T,*mut T}>`.
2929
[#4183](https://github.com/rustwasm/wasm-bindgen/pull/4183)
3030

31-
* Reference type proposal transformations are not applied by default when detecting it in the Wasm module for the bundler target because currently `webpack` doesn't support it.
32-
[#4235](https://github.com/rustwasm/wasm-bindgen/pull/4235)
33-
3431
* Deprecate `--reference-types` in favor of automatic target feature detection.
3532
[#4237](https://github.com/rustwasm/wasm-bindgen/pull/4237)
3633

crates/cli-support/src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,7 @@ impl Bindgen {
325325
};
326326

327327
// Enable reference type transformations if the module is already using it.
328-
// Currently `webpack` does not support reference types.
329-
if !matches!(self.mode, OutputMode::Bundler { .. })
330-
&& wasm_bindgen_wasm_conventions::target_feature(&module, "reference-types").ok()
331-
== Some(true)
328+
if let Ok(true) = wasm_bindgen_wasm_conventions::target_feature(&module, "reference-types")
332329
{
333330
self.externref = true;
334331
}

0 commit comments

Comments
 (0)