-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
https://stackoverflow.com/a/71473145 provides some good input w.r.t. to module and moduleResolution.
At the moment we have the following settings
Lines 5 to 6 in 8dc6ed8
| "module": "Node16", | |
| "moduleResolution": "Node16", |
and possible settings are
Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'node18', 'nodenext', 'preserve'.
Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'.
nodenext does not seem feasible since it is a "floating" or bleeding-edge option. Useful to set the module emit version at least to 'node18'?
What is the advantage of using es variants, see https://blog.logrocket.com/commonjs-vs-es-modules-node-js/
Metadata
Metadata
Assignees
Labels
No labels