-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
🙋 sourceRoot support for sourcemaps #1078
Comments
@teabyii looks great API and cli did work fine 👍! One thing though that i missed to mention in my example and i feel terrible sorry for only seeing it now is that the lets say your output file is in Maybe a simple 'path.relative()' can fix this ? |
I have appended a commit to make sure |
Sorry for the late reply, the path looks good for POSIX systems but on windows you end up with a
|
That's a problem, I forgot the Windows. Thank you, I will try to fix it as soon as possible. At first, I should get a Windows virtual machine to have a test 😃. Maybe I will try to add some tests for it. |
Btw this is because |
Currently there is no way to define the sourceRoot property via parcel
💁 Possible Solution
Adding a option for the API, which tells where the sourceRoot is located
🔦 Context
The only way to to debug my electron application that has been bundled with parcel is by overriding the sourcemaps paths through the vscode debugger.
My .vscode/launch.json
Normally this should be handled via the
sourceRoot
property of a sourcemap.💻 Code Sample
The text was updated successfully, but these errors were encountered: