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

No mjs found in dist folder #162

Open
cranberyxl opened this issue Jun 14, 2024 · 0 comments
Open

No mjs found in dist folder #162

cranberyxl opened this issue Jun 14, 2024 · 0 comments

Comments

@cranberyxl
Copy link
Contributor

I'm trying to bundle the library in library that would reference the mjs file listed in the package.json, however, dist/index.mjs does not exist.

It looks like a second tsconfig.json is needed that has something like "module": "ES2015" in it and both need to be compiled. Optionally, you could change the format of the package.json so that bundlers fallback to cjs

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