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'.
https://stackoverflow.com/a/71473145 provides some good input w.r.t. to
moduleandmoduleResolution.At the moment we have the following settings
node-wot/tsconfig.json
Lines 5 to 6 in 8dc6ed8
and possible settings are
nodenextdoes 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
esvariants, see https://blog.logrocket.com/commonjs-vs-es-modules-node-js/