unbuild
unbuild copied to clipboard
cannot use kebab-case keys from `.json` file default exports
Environment
stackblitz unbuild: ^1.1.1 node: 16.14.2
Reproduction
https://stackblitz.com/edit/node-z61fts?file=index.js
Describe the bug
When import a kabab-case field from json file.
The result after the build is incorrect.
Please see reproduction and execute npm run build, and see dist/index.js.mjs.
I think this is an upstream error from rollup. But I cannot reproduce it by using rollup.
Additional context
No response
Logs
No response