Always download wasm opt from the binary (#4247)

* always download wasm opt from the binary

* clean up and pass clippy

* fix playwright commands

* don't cache dx target folder
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-06-04 08:43:58 -05:00
1 parent c2a6c14305
commit 693f5c61b9
6 files changed
+227 -111

No files matched your search

+2 -3
View File
@@ -3210,8 +3210,7 @@ impl BuildRequest {
//
// We leave demangling to false since it's faster and these tools seem to prefer the raw symbols.
// todo(jon): investigate if the chrome extension needs them demangled or demangles them automatically.
let will_wasm_opt = (self.release || self.wasm_split)
&& (self.workspace.wasm_opt.is_some() || cfg!(feature = "optimizations"));
let will_wasm_opt = self.release || self.wasm_split;
let keep_debug = self.config.web.wasm_opt.debug
|| self.debug_symbols
|| self.wasm_split
@@ -3259,7 +3258,7 @@ impl BuildRequest {
if !will_wasm_opt {
return Err(anyhow::anyhow!(
"Bundle splitting requires wasm-opt to be installed or the CLI to be built with `--features optimizations`. Please install wasm-opt and try again."
"Bundle splitting should automatically enable wasm-opt, but it was not enabled."
)
.into());
}