Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack requires fullyResolved for .mjs files to bundle properly #8

Open
jacob-alford opened this issue Oct 25, 2023 · 0 comments
Open

Comments

@jacob-alford
Copy link
Contributor

jacob-alford commented Oct 25, 2023

This is an issue that also effects schemata-ts. Essentially, .mjs files need to specify the file extension when importing from non-mjs files. This issue arises because kuvio's exports import from fp-ts/Foo where they need to be replaced with fp-ts/es6/Foo.js for .mjs files. It might also be good to replace .js fp-ts imports with fp-ts/lib/Foo.js too.

Source of issues: all .mjs files which import from fp-ts/Foo
Example: https://unpkg.com/browse/kuvio@1.3.1/dist/index.mjs

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

No branches or pull requests

1 participant