mishelen
3/31/2016 - 9:38 PM

ES6 REPL in Sublime Text

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"
}