Skip to content

Instantly share code, notes, and snippets.

@antsmartian
Last active January 27, 2018 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antsmartian/999d10774e1828df45e43127fc879d14 to your computer and use it in GitHub Desktop.
Save antsmartian/999d10774e1828df45e43127fc879d14 to your computer and use it in GitHub Desktop.

To run es6 code in your webstorm, please do the following:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000241710-WebStorm-Mocha-Tests-with-Node-Interpreter-for-react-create-app

Get the help from the following page:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/203373470-How-to-make-Webstorm-2016-2-debug-work-with-ES6-and-babel

1.Install babel-cli (locally) 2. Then change your configuration to point to babel-node like babel-cli/bin/babel-node 3. Node parameters should be the following:

--presets es2015,stage-3 --expose-debug-as=v8debug

Now you need to install es2015 and stage-3 for babel node so run the following command:

npm install --save-dev babel-preset-es2015 babel-preset-stage-3

Then everything should work without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment