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

devserver inline sourcemap is pointing to the wrong url #4912

Closed
7 tasks done
CGQAQ opened this issue Sep 13, 2021 · 1 comment · Fixed by #4985
Closed
7 tasks done

devserver inline sourcemap is pointing to the wrong url #4912

CGQAQ opened this issue Sep 13, 2021 · 1 comment · Fixed by #4985

Comments

@CGQAQ
Copy link
Contributor

CGQAQ commented Sep 13, 2021

Describe the bug

image
as image above the source map is pointing to absolute path of original file, and vite devserver is directly join baseurl with the absolute path of original file

Reproduction

aaa.zip

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (4) x64 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz
    Memory: 4.50 GB / 15.87 GB
  Binaries:
    Node: 16.5.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.11 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.21.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (93.0.961.47)
    Internet Explorer: 11.0.19041.906

Used Package Manager

yarn

Logs

No response

Validations

@CGQAQ
Copy link
Contributor Author

CGQAQ commented Sep 13, 2021

image
image

if I change script lang to js, the breakpoint will hit correctly

@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant