Skip to content

fix: replace require() with dynamic import() for ESM compatibility#53

Open
kyscott18 wants to merge 2 commits intomainfrom
kjs/fix-esm-require
Open

fix: replace require() with dynamic import() for ESM compatibility#53
kyscott18 wants to merge 2 commits intomainfrom
kjs/fix-esm-require

Conversation

@kyscott18
Copy link
Copy Markdown
Collaborator

The mpp package is "type": "module" but was using require("viem") which is not available in ESM runtimes. Switch to await import().

The mpp package is `"type": "module"` but was using `require("viem")`
which is not available in ESM runtimes. Switch to `await import()`.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@kyscott18 kyscott18 requested review from a team April 10, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants