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
Node 18
Put a JSON import with an assertion to a TS file and run unbuild
import pkg from 'npm-package/package.json' assert { type: "json" }
loses the assert and becomes
import pkg from 'npm-package/package.json'
Note that package.json is actually exported by the package I'm using. It works fine otherwise.
ESBuild leaves it alone as expected in ESM formats.
No response
The text was updated successfully, but these errors were encountered:
This is a low priority and can be closed if you don't want to fix; I found an alternate way to accomplish what I was looking to do :)
Sorry, something went wrong.
No branches or pull requests
Environment
Node 18
Reproduction
Put a JSON import with an assertion to a TS file and run unbuild
Describe the bug
import pkg from 'npm-package/package.json' assert { type: "json" }
loses the assert and becomes
import pkg from 'npm-package/package.json'
Additional context
Note that package.json is actually exported by the package I'm using. It works fine otherwise.
ESBuild leaves it alone as expected in ESM formats.
Logs
No response
The text was updated successfully, but these errors were encountered: