Skip to content
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

Merged
merged 3 commits into from
Dec 3, 2018
Merged

Fix source maps #96

merged 3 commits into from
Dec 3, 2018

Conversation

rauchg
Copy link
Member

@rauchg rauchg commented Dec 3, 2018

No description provided.

if (run) {
const ps = require("child_process").fork(outDir + "/index.js", {
execArgv: map
? ["-r", resolve(__dirname, "sourcemap-register")]
Copy link
Member Author

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");
Copy link
Member Author

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/

Copy link
Contributor

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-io
Copy link

codecov-io commented Dec 3, 2018

Codecov Report

Merging #96 into master will increase coverage by 1.07%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/sourcemap-register.js 0% <0%> (ø)
src/cli.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da037bd...c25562c. Read the comment docs.

@rauchg rauchg merged commit ed899db into master Dec 3, 2018
@rauchg rauchg deleted the fix-source-maps branch December 3, 2018 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants