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

Sourcemap in dev mode #8289

Closed
4 tasks done
CarolineSenes opened this issue May 23, 2022 · 6 comments · Fixed by #8299
Closed
4 tasks done

Sourcemap in dev mode #8289

CarolineSenes opened this issue May 23, 2022 · 6 comments · Fixed by #8299

Comments

@CarolineSenes
Copy link

CarolineSenes commented May 23, 2022

Clear and concise description of the problem

I'm working with a team migrating a project from Webpack to Vitejs. Currently, sourcemap in dev mode is only displayed when there is an error in the console (i'm not talking about the CSS sourcemap). When you click on the file that contains the error, the sourcemap opens.

github minimal reproduction

Suggested solution

I don't know how, but it would be useful to be able to always (even if there is no error) view the sourcemap in dev mode with options like in webpack (eg: eval-source-map).

Alternative

No response

Additional context

Vite / React

Validations

@sapphi-red
Copy link
Member

image
image
It is working on my machine (on windows / wsl). (paths are messy because of #4657 which will be solved by #2950)

Where are you placing the project? It might be effecting this.

@CarolineSenes
Copy link
Author

I have it too. I don't know if we changed something or if we didn't take a good look before (and I'm sorry if we did) ... but the sourcemap in dev mode is displayed correctly. Thank you for your time !

@patak-dev
Copy link
Member

Thanks for the update @CarolineSenes, lets close this issue then 👍🏼

@poyoho
Copy link
Member

poyoho commented May 28, 2022

I think the issues is not fix.

  1. goto playground/worker
  2. run pnpm run dev:sourcemap

you can see null in console.

@sapphi-red
Copy link
Member

@poyoho I think that is an different issue which needs to be fixed.

@poyoho
Copy link
Member

poyoho commented May 28, 2022

ok.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2022
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.

4 participants