Skip to content

Commit

Permalink
Document that babel-register already uses source-map-support
Browse files Browse the repository at this point in the history
So you actuall don't need to use import 'source-map-support/register'
  • Loading branch information
graingert committed Jul 20, 2016
1 parent 88db836 commit 1effda1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import 'source-map-support/register'
import sourceMapSupport from 'source-map-support'
sourceMapSupport.install()
```
Note: if you're using babel-register, it includes source-map-support already.

It is also very useful with Mocha:

Expand Down

1 comment on commit 1effda1

@blakeembrey
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think this is needed? It's the same for ts-node, coffee-script, etc. too. Might want to add those then.

Please sign in to comment.