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

fix: inline sourcemaps to help with debugging #6768

Merged
merged 1 commit into from
May 14, 2024

Conversation

matthewkeil
Copy link
Member

@matthewkeil matthewkeil commented May 14, 2024

Motivation

Turns on inline sourcemaps to help with debugging under vitest. Only works with vscode enabled debugging console and will work to get this expended to a debug launch profile

Screenshot 2024-05-14 at 10 42 43 AM

@matthewkeil matthewkeil requested a review from a team as a code owner May 14, 2024 07:41
@matthewkeil matthewkeil merged commit 8065222 into electra-fork May 14, 2024
14 of 18 checks passed
@matthewkeil matthewkeil deleted the mkeil/inline-maps-for-vitest-electra branch May 14, 2024 08:42
@@ -40,6 +40,7 @@ export function getBaseViteConfig(
esbuild: {
banner,
legalComments: "none",
sourcemap: "inline",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The vite file is not for the vitest, rather it's for the bundle packages. I am surprised changing any of this effects debugging. If you actually need sourcemaps for the tests then use this option https://vitest.dev/config/#server-sourcemap

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 this pull request may close these issues.

None yet

4 participants