Skip to content

Conversation

iiio2
Copy link

@iiio2 iiio2 commented May 11, 2025

"type": "module" syntax detection is required for performance issue. Node.js doc says, "Syntax detection should have no performance impact on CommonJS modules, but it incurs a slight performance penalty for ES modules; add "type": "module" to the nearest parent package.json file to eliminate the performance cost." That's why I think we may add it in the package.json file.

https://nodejs.org/en/blog/release/v20.19.0#module-syntax-detection-is-now-enabled-by-default

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

Successfully merging this pull request may close these issues.

1 participant