Skip to content

Fix ES module build#36

Open
novaliu86 wants to merge 2 commits into1inch:masterfrom
novaliu86:fix/esm
Open

Fix ES module build#36
novaliu86 wants to merge 2 commits into1inch:masterfrom
novaliu86:fix/esm

Conversation

@novaliu86
Copy link
Copy Markdown

We failed to consume this package in our node.js project which uses ESM.

The problem is that the tsc config moduleResolution was incorrect: according to TS official doc here: its value should be nodenext or node16 for modern node.js projects.

We also tested this change with a folked package 1inch-limit-order-sdk which works well.

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.

1 participant