Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using rgbkrk/atom-script and the latest version of Babel

Using the latest version of Babel with rgbkrk/atom-script

Update Babel CLI

cd ~/.atom/packages/script
npm uninstall --save-optional babel-cli
npm install --save-optional @babel/cli@latest
npm install --save-dev @babel/preset-env@latest
npm install --save-dev @babel/core@latest

Update package.json Babel preset (optional)


"babel": {
  "presets": [
    ["@babel/preset-env", {
      "shippedProposals": true,
      "debug": true,
      "useBuiltIns": "usage",
      "targets": {
        "browsers": ["last 2 versions"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment