Skip to content

Commit 2025b6a

Browse files
Stop importing as index.js to make esm.sh happy
It seems that `esm.sh` strips `index.js` from the import path while bundling. This causes wrong `import "dist.js"` to be generated. Close #335
1 parent d9b6011 commit 2025b6a

File tree

4 files changed

+732
-731
lines changed

4 files changed

+732
-731
lines changed

packages/npm-packages/ruby-wasm-wasi/src/browser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Fd, WASI } from "@bjorn3/browser_wasi_shim";
2-
import { RubyVM, consolePrinter } from "./index.js";
2+
import { consolePrinter } from "./console.js";
3+
import { RubyVM } from "./vm.js";
34

45
export const DefaultRubyVM = async (
56
rubyModule: WebAssembly.Module,

0 commit comments

Comments
 (0)