Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Apr 10, 2025

Description

Partially revert #19004 to remove line offset preservation logic as a minor simplification. This is not necessary anymore on Vitest after vitest-dev/vitest#7557 and this transform was also a best effort basis and didn't cover all scenarios (e.g. comments and exports in between).

@hi-ogawa
Copy link
Contributor Author

/ecosystem-ci run

Copy link

pkg-pr-new bot commented Apr 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/vite@19829

commit: 1671452

@vite-ecosystem-ci

This comment was marked as outdated.

@vite-ecosystem-ci
Copy link

📝 Ran ecosystem CI on 281b797: Open

suite result latest scheduled
vite-environment-examples success failure
storybook failure failure
vite-plugin-react failure failure
vike success failure
waku success failure

laravel, marko, ladle, astro, quasar, nuxt, previewjs, analogjs, react-router, qwik, histoire, rakkas, vite-plugin-react-swc, vite-plugin-pwa, sveltekit, vite-plugin-cloudflare, unocss, vite-plugin-vue, vite-plugin-svelte, vite-setup-catalogue, vuepress, vitest, vitepress

@hi-ogawa hi-ogawa marked this pull request as ready for review April 10, 2025 02:44
@sapphi-red
Copy link
Member

I think we should wait merging this until next major as

  • this would break older Vitest versions + Vite after this PR
  • the next major is soon
  • keeping this is a small burden

@sapphi-red sapphi-red added p1-chore Doesn't change code behavior (priority) feat: ssr breaking change labels Apr 10, 2025
@sapphi-red sapphi-red added this to the 7.0 milestone Apr 10, 2025
@sapphi-red sapphi-red merged commit 61b6b96 into vitejs:main May 21, 2025
16 checks passed
@hi-ogawa hi-ogawa deleted the refactor-partial-revert-19004 branch May 21, 2025 23:55
moonlitusun pushed a commit to moonlitusun/vite that referenced this pull request May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants