Skip to main content

wasm_rule_block

Function wasm_rule_block 

Source
pub fn wasm_rule_block() -> TomlBlock
Expand description

#2321: the explicit module rule for a Worker whose adapter closure reaches an included WebAssembly module: **/*.wasm is compiled by Wrangler to a WebAssembly.Module (the shim’s import module from "./x.wasm"). Wrangler’s default rules already say this; stating it keeps the dependency visible and stops it changing under us. fallthrough = true leaves the other default rules in force.