Skip to content

Instantly share code, notes, and snippets.

@therealklanni
Last active July 10, 2019 18:09
Show Gist options
  • Save therealklanni/181ea7d4ceefd8590296 to your computer and use it in GitHub Desktop.
Save therealklanni/181ea7d4ceefd8590296 to your computer and use it in GitHub Desktop.
ES6 REPL in Sublime Text

ES6 REPL in Sublime Text

By adding this build system to Sublime, you can turn any "scratch" JS file into a ES6 REPL (or any ES6 JS file).

Save ES6.sublime-build to your Sublime Packages/User directory and select "ES6" as your build system. Press ⌘B to run the file in the current tab through Babel.

{
"cmd": ["/usr/local/bin/babel-node $file"],
"shell": true,
"selector": "*.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment