Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ES Modules example with @babel/preset-env

Settings

See package.json and .babelrc.

  • specify "@babel/preset-env": "7.7.5" in package.json (exactly "7.7.5"; neigher "^7.7.5" nor "~7.7.5")
  • use module-extension-resolver plugin in .babelrc

Build

npm ci
npm run build

Run

node --experimental-modules ./dist/index.mjs