-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix source maps #96
Fix source maps #96
Conversation
if (run) { | ||
const ps = require("child_process").fork(outDir + "/index.js", { | ||
execArgv: map | ||
? ["-r", resolve(__dirname, "sourcemap-register")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this into finding a sourcemap-register
in the same directory
@@ -0,0 +1,3 @@ | |||
// note: this file is overriden by `scripts/build` | |||
// and substituted for the production release | |||
module.exports = require("source-map-support/register"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes it work both inside dist/
and in src/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks for sorting out this use case too.
Codecov Report
@@ Coverage Diff @@
## master #96 +/- ##
==========================================
+ Coverage 69.78% 70.85% +1.07%
==========================================
Files 3 4 +1
Lines 331 326 -5
==========================================
Hits 231 231
+ Misses 100 95 -5
Continue to review full report at Codecov.
|
No description provided.