modules icon indicating copy to clipboard operation
modules copied to clipboard

build: provide `"type": "module"` in `package.json`

Open iiio2 opened this issue 9 months ago • 0 comments

"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

iiio2 avatar May 11 '25 13:05 iiio2