-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stack-source-map again but only for Chrome.
- Loading branch information
Showing
7 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
'use strict'; | ||
|
||
var isChrome = function isChrome() { | ||
return navigator.userAgent.toLowerCase().indexOf('chrome') > -1; | ||
}; | ||
|
||
// This only works with Chrome (AKA V8). | ||
// So, using this on other browsers cause problems. | ||
// But this provides a lot of value when debugging bundled code. | ||
if (isChrome()) { | ||
require('stack-source-map/register'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var isChrome = function() { | ||
return navigator.userAgent.toLowerCase().indexOf('chrome') > -1; | ||
}; | ||
|
||
// This only works with Chrome (AKA V8). | ||
// So, using this on other browsers cause problems. | ||
// But this provides a lot of value when debugging bundled code. | ||
if(isChrome()) { | ||
require('stack-source-map/register'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@arunoda ... I found that I had to change this path to include './node_modules/' before the 'webpack-hot-middleware/client' in order for my project to build. Does that make sense to you or should there be a more elegant way to address that? I was getting an error stating that the webpack-hot-middleware/client' couldn't be found otherwise.