-
Notifications
You must be signed in to change notification settings - Fork 5
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
Merge source maps with more clever algorithm #6
Conversation
…ebugging experience with TypeScript sources.
Hi @MotorHeat ! thanks for the PR. I will be checking it in the next hours. |
With TypeScript+Surplus we have this scheme:
|
return result; | ||
} | ||
|
||
module.exports.mergeToPostProcessedSourceMap = mergeToPostProcessedSourceMap |
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.
you can do: module.exports = mergeToPostProcessedSourceMap
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.
Thanks for the explanation! it was really helpful to understand the PR.
So, two things about the PR:
- The code seems ok but please can you run the new (I just added now): "npm run lint -- --fix" so the code can be standard compatible.
- I think what you did here is something really helpful for all the surplus plugins out there. Did you think about creating a new module to put this functionality? So we can use it for all the plugins. (it's just an idea)
I think you are right that this thing should be in a separate npm module. |
I have played more deeply with I will abandon this PR because more simple solution exists. |
This will make normal debugging experience with TypeScript sources.