vite-node seems to have better support for mixed ESM and CJS modules and makes the scripts work with both kinds of packages without having to change the project configuration.
vite-node seems to have better support for mixed ESM and CJS modules and makes the scripts work with both kinds of packages without having to change the project configuration.