Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #260 from cloudflare/fix-bindings-name
Browse files Browse the repository at this point in the history
fix: correct binding format
  • Loading branch information
xtuc committed Jun 18, 2019
2 parents 776fa99 + 5db08ec commit 1d07103
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/build/wranglerjs/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ pub fn create_metadata(bundle: &Bundle) -> String {
r#"
{{
"body_part": "script",
"binding": {{
"bindings": [{{
"name": "{name}",
"type": "wasm_module",
"part": "{name}"
}}
}}]
}}
"#,
name = bundle.get_wasm_binding(),
Expand Down Expand Up @@ -225,11 +225,11 @@ mod tests {
r#"
{
"body_part": "script",
"binding": {
"bindings": [{
"name": "wasmprogram",
"type": "wasm_module",
"part": "wasmprogram"
}
}]
}
"#
);
Expand Down

0 comments on commit 1d07103

Please sign in to comment.