You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't invalid ESM. It's valid JavaScript, but it uses the ESNext feature known as arbitrary module namespace identifier names which is supported in recent versions of Chrome, Firefox, Safari, and Node. If you need the output to run in old JavaScript VMs that don't support certain ESNext features, make sure to specify the target setting such as --target=node12.22.4 (the target defaults to --target=esnext if it's not explicitly specified).
Reproduction
https://replit.com/@sodatea/esbuild-json-esm
Suggested solution
Top-level JSON properties whose keys are illegal identifiers should not be exported as named exports.
The text was updated successfully, but these errors were encountered: