Skip to content

Instantly share code, notes, and snippets.

@audionerd
Created February 5, 2019 18:38
Show Gist options
  • Save audionerd/b46c7dd091caccf3cbf4285c68029db2 to your computer and use it in GitHub Desktop.
Save audionerd/b46c7dd091caccf3cbf4285c68029db2 to your computer and use it in GitHub Desktop.
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)

e.g.:

"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