We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5d3e46 commit 2d0866dCopy full SHA for 2d0866d
crates/cli-support/src/js/mod.rs
@@ -285,7 +285,10 @@ impl<'a> Context<'a> {
285
| OutputMode::Node {
286
experimental_modules: true,
287
} => {
288
- imports.push_str(&format!("import * as wasm from './{}_bg.wasm';\n", module_name));
+ imports.push_str(&format!(
289
+ "import * as wasm from './{}_bg.wasm';\n",
290
+ module_name
291
+ ));
292
for (id, js) in sorted_iter(&self.wasm_import_definitions) {
293
let import = self.module.imports.get_mut(*id);
294
import.module = format!("./{}.js", module_name);
0 commit comments