We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found that you MUST prefix the paths with ./ or they'll fail with esbuild, not sure if this happens with other bundlers or environments, e.g.
./
"exports": { ".": { "import": "dist/somedom.mjs", "require": "dist/somedom.js", "browser": "dist/somedom.umd.js" }, "./ssr": { "import": "dist/index.ssr.mjs", "require": "dist/index.ssr.js" } }
This configuration yields The package target "dist/somedom.mjs" is invalid if consumed on other modules.
The package target "dist/somedom.mjs" is invalid
Once I prefixed the paths to ./dist then it worked without issues.
./dist
I think this is an issue, because I ran publint and it said it was correct, which was not true.
publint
So much thanks for this amazing tool, see you!
The text was updated successfully, but these errors were encountered:
Good idea! I think that's required by nodejs too so we should probably enforce this.
Sorry, something went wrong.
fcaa491
Supported in v0.1.6. The site should be updated too.
No branches or pull requests
I found that you MUST prefix the paths with
./
or they'll fail with esbuild, not sure if this happens with other bundlers or environments, e.g.This configuration yields
The package target "dist/somedom.mjs" is invalid
if consumed on other modules.Once I prefixed the paths to
./dist
then it worked without issues.I think this is an issue, because I ran
publint
and it said it was correct, which was not true.So much thanks for this amazing tool, see you!
The text was updated successfully, but these errors were encountered: