Merge pull request #313 from jamen/support-rollup

Make JS use a '.wasm' extension when importing the binary
This commit is contained in:
Nick Fitzgerald 2018-06-25 15:34:58 -07:00 committed by GitHub
commit 5adda0d591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -365,7 +365,7 @@ impl<'a> Context<'a> {
module_name));
format!("var wasm;")
} else {
format!("import * as wasm from './{}_bg';", module_name)
format!("import * as wasm from './{}_bg.wasm';", module_name)
};
format!("\