Skip to content

Instantly share code, notes, and snippets.

@khaledosman
Last active February 11, 2019 14:15
Show Gist options
  • Save khaledosman/f59890f487e9622c6a39c417c747ed98 to your computer and use it in GitHub Desktop.
Save khaledosman/f59890f487e9622c6a39c417c747ed98 to your computer and use it in GitHub Desktop.
package.json quick setup to work with es6 modules in node without using --experimental-modules and .mjs files or setting up a webpack.config
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"nodemon": "^1.18.3"
},
"babel": {
"presets": [
"env"
]
},
"scripts": {
"start": "nodemon ./server.js --exec babel-node --inspect"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment