See package.json
and .babelrc
.
- set
type
to"module"
inpackage.json
- specify
"@babel/preset-env": "7.7.5"
inpackage.json
(exactly"7.7.5"
; neigher"^7.7.5"
nor"~7.7.5"
) - set
modules
tofalse
in.babelrc
- use
module-extension-resolver
plugin in.babelrc
npm ci
npm run build
node --experimental-modules ./dist/index.js