We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you want to convert to es6 with using babel: npm install -D babel-cli babel-preset-es2015
npm install -D babel-cli babel-preset-es2015
create a new file in your root directory called .babelrc and use this code: { "presets": ["es2015"] }
.babelrc
{ "presets": ["es2015"] }
in your package.json, change your start script to : ``"start": "nodemon app.js --exec babel-node"
and if you want to add a build & serve command for running on production: "build": "babel app.js -d dist", "serve": "node dist/app.js"
"build": "babel app.js -d dist", "serve": "node dist/app.js"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you want to convert to es6 with using babel:
npm install -D babel-cli babel-preset-es2015
create a new file in your root directory called
.babelrc
and use this code:{ "presets": ["es2015"] }
in your package.json, change your start script to : ``"start": "nodemon app.js --exec babel-node"
and if you want to add a build & serve command for running on production:
"build": "babel app.js -d dist", "serve": "node dist/app.js"
The text was updated successfully, but these errors were encountered: