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(sourcemap): dont inject fallback sourcemap if have existing #14370

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Sep 14, 2023

Description

Found in vite-plugin-svelte's ecosystem-ci, if the transformed code already has an inline sourcemap (for some reason) and has no returned map, we don't inject a fallback sourcemap.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@stackblitz
Copy link

stackblitz bot commented Sep 14, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

packages/vite/src/node/server/send.ts Outdated Show resolved Hide resolved
packages/vite/src/node/server/send.ts Outdated Show resolved Hide resolved
@sapphi-red sapphi-red merged commit 55a3b4f into main Sep 15, 2023
11 checks passed
@sapphi-red sapphi-red deleted the preserve-sourcemap branch September 15, 2023 09:22
@sapphi-red sapphi-red added p3-minor-bug An edge case that only affects very specific usage (priority) feat: sourcemap Sourcemap support labels Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: sourcemap Sourcemap support p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants