Skip to content

Commit

Permalink
Forcing source-map-support module into node environment, so its not t…
Browse files Browse the repository at this point in the history
…ricked by jsdom (#4607)
  • Loading branch information
trmjoa authored and danez committed Sep 29, 2016
1 parent 6abc28e commit aa0aada
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-register/src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import path from "path";

sourceMapSupport.install({
handleUncaughtExceptions: false,
environment : "node",

This comment has been minimized.

Copy link
@vire

vire Sep 29, 2016

This had cost me a half day of debugging

This comment has been minimized.

Copy link
@danez

danez Sep 29, 2016

Member

Yes me too :(

This comment has been minimized.

Copy link
@bradchristensen

bradchristensen Sep 29, 2016

You have to laugh about it though. 😝 I died a little inside finding that this was also my issue after I assumed it was my refactoring 😢

retrieveSourceMap(source) {
let map = maps && maps[source];
if (map) {
Expand Down

0 comments on commit aa0aada

Please sign in to comment.