Skip to content

chore: add a way to disable source maps when developing Vite#20168

Merged
sapphi-red merged 2 commits intovitejs:mainfrom
sapphi-red:chore/add-a-way-to-disable-source-maps-in-dev
Jun 6, 2025
Merged

chore: add a way to disable source maps when developing Vite#20168
sapphi-red merged 2 commits intovitejs:mainfrom
sapphi-red:chore/add-a-way-to-disable-source-maps-in-dev

Conversation

@sapphi-red
Copy link
Copy Markdown
Member

@sapphi-red sapphi-red commented Jun 6, 2025

Description

Adds an env var to disable source maps when developing Vite.
Also set that env var when running tests.

@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label Jun 6, 2025
hi-ogawa
hi-ogawa previously approved these changes Jun 6, 2025
Copy link
Copy Markdown
Contributor

@hi-ogawa hi-ogawa left a comment

Choose a reason for hiding this comment

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

Sounds good to me, but is there any specific issue you see in tests? I think this won't affect most of the tests (except playground/cli ,cli-module?) since they don't load cli packages/vite/bin/vite.js.

@sapphi-red
Copy link
Copy Markdown
Member Author

I vaguely remembered that you encountered this kind of problem in past. But you're right, it won't happen with tests. Let remove that part.

Comment thread CONTRIBUTING.md Outdated
Comment thread vitest.config.e2e.ts Outdated
Comment thread vitest.config.ts Outdated
@sapphi-red sapphi-red changed the title chore: add a way to disable source maps when developing Vite and disable it when running tests chore: add a way to disable source maps when developing Vite Jun 6, 2025
Copy link
Copy Markdown
Contributor

@hi-ogawa hi-ogawa left a comment

Choose a reason for hiding this comment

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

Hmm, I also vaguely remember I said something about it, but forgot 😅

@sapphi-red sapphi-red merged commit 3a30c0a into vitejs:main Jun 6, 2025
25 of 26 checks passed
@sapphi-red sapphi-red deleted the chore/add-a-way-to-disable-source-maps-in-dev branch June 6, 2025 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore Doesn't change code behavior (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants