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

outputOptions.pathInfo = true breaks sourcemaps #814

Closed
randypuro opened this issue Aug 30, 2021 · 3 comments · Fixed by #817
Closed

outputOptions.pathInfo = true breaks sourcemaps #814

randypuro opened this issue Aug 30, 2021 · 3 comments · Fixed by #817

Comments

@randypuro
Copy link

  • Operating System:
  • Node Version:
  • NPM Version:
  • webpack Version: 5.51.1
  • mini-css-extract-plugin Version: 2.2.0

Expected Behavior

Source map line numbers are correct, even with outputOptions.pathinfo is true

Actual Behavior

#783 adds a 3 line comment block to the top of the output; so source map line numbers are all off by 3

Code

How Do We Reproduce?

With a sourcemapped setup, click on a css class link in browser dev tools, and notice that the link shows the wrong line in the source.

@alexander-akait
Copy link
Member

How Do We Reproduce?

Can't reproduce

Screenshot from 2021-08-31 14-53-03
4 and 10 lines
Screenshot from 2021-08-31 14-53-08
in file 4 and 10 lines

In future, please provide steps, without steps I can't find the problem

@alexander-akait
Copy link
Member

oh, reproduced

@randypuro
Copy link
Author

Thank you!

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 a pull request may close this issue.

2 participants