Open ItalyPaleAle opened 2 years ago
When the package is configured with "type": "module" all .js files are interpreted as ESM by default, including esbuild-runner.config.js. We would need to set the extension to .cjs instead.
"type": "module"
.js
esbuild-runner.config.js
.cjs
However the file name is hardcoded and always uses .js
When the package is configured with
"type": "module"
all.js
files are interpreted as ESM by default, includingesbuild-runner.config.js
. We would need to set the extension to.cjs
instead.However the file name is hardcoded and always uses
.js