-
-
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
Wrong path to source files in sourcemap #1180
Comments
This is correct behaviour parcel looks relative from the root which is the directory with the entrypoint. In the next parcel version pointing to this folder using sourceRoot. This should fix this behaviour feel free to try out the master branch Sent with GitHawk |
Was just about to ask for the relevant change, but found it here: #1141 |
I'm still having an issue with this on version 1.9.7 which seems to include #1141.
WebApp (Asp.net) / In the JavaScript console. @DeMoorJasper Should I create a new issue for this? Is there a configuration/options file I need to create for setting the sourceRoot variable? Thanks for your help. |
@duncansultan Feel free to open a new issue, this is probably a windows bug. Feel free to look into and fix this bug as we barely have any windows contributors |
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
Project structure:
entry.js (dynamic import that enables code splitting)
modules1.js
Working directory:
project
Command:
parcel build public\scripts\entry.js --out-dir public\dist
🤔 Expected Behavior
The correct reference path to
module2.js
inpublic/dist/module1.xxxxxxxx.map
should be../scripts/module2.js
😯 Current Behavior
public/dist/module1.xxxxxxxx.map
contains reference tomodule2.js
like this:module2.js
, which is wrong.🌍 Your Environment
The text was updated successfully, but these errors were encountered: