Skip to content

Commit 235cd3e

Browse files
authored
chore(deps): update vite to v8 (#759)
1 parent 3596eff commit 235cd3e

File tree

7 files changed

+708
-636
lines changed

7 files changed

+708
-636
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,6 @@ jobs:
9292
- name: Test build
9393
run: pnpm run test-build
9494

95-
- name: Setup rolldown-vite
96-
run: |
97-
sed -i"" -e "s/overrides:/overrides:\n vite: catalog:rolldown-vite/" pnpm-workspace.yaml
98-
pnpm i --no-frozen-lockfile
99-
100-
- name: Test serve (rolldown-vite)
101-
run: pnpm run test-serve
102-
103-
- name: Test build (rolldown-vite)
104-
run: pnpm run test-build
105-
10695
lint:
10796
if: github.repository == 'vitejs/vite-plugin-vue'
10897
timeout-minutes: 10

playground/vue-legacy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"vue": "catalog:"
1414
},
1515
"devDependencies": {
16-
"@vitejs/plugin-legacy": "^7.2.1",
16+
"@vitejs/plugin-legacy": "^8.0.1",
1717
"@vitejs/plugin-vue": "workspace:*"
1818
}
1919
}

playground/vue-sourcemap/__tests__/__snapshots__/vue-sourcemap.spec.ts.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,7 @@ exports[`serve:vue-sourcemap > src imported sass > serve-src-imported-sass 1`] =
353353

354354
exports[`serve:vue-sourcemap > ts > serve-ts 1`] = `
355355
{
356-
"ignoreList": [],
357-
"mappings": ";AAKA,QAAQ,IAAI,WAAW;;;;;AAIvB,YAAQ,IAAI,UAAU;;;;;;;;uBARpB,oBAAiB,WAAd,MAAU",
356+
"mappings": ";AAKA,QAAQ,IAAI,YAAW;;;;;AAIvB,UAAQ,IAAI,WAAU;;;;;;;;;;;sBARpB,oBAAiB,KAAA,MAAd,OAAU",
358357
"sources": [
359358
"Ts.vue",
360359
],

playground/vue-sourcemap/__tests__/vue-sourcemap.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { URL } from 'node:url'
22
import { describe, expect, test } from 'vitest'
3-
import * as vite from 'vite'
43
import {
54
extractSourcemap,
65
formatSourcemapForSnapshot,
@@ -10,8 +9,6 @@ import {
109
serverLogs,
1110
} from '~utils'
1211

13-
const isRolldownVite = 'rolldownVersion' in vite
14-
1512
describe.runIf(isServe)('serve:vue-sourcemap', () => {
1613
const getStyleTagContentIncluding = async (content: string) => {
1714
const styles = await page.$$('style')
@@ -31,8 +28,7 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
3128
expect(formatSourcemapForSnapshot(map)).toMatchSnapshot('serve-js')
3229
})
3330

34-
// skip this test for now with rolldown-vite as the snapshot is slightly different
35-
test.skipIf(isRolldownVite)('ts', async () => {
31+
test('ts', async () => {
3632
const res = await page.request.get(new URL('./Ts.vue', page.url()).href)
3733
const js = await res.text()
3834
const map = extractSourcemap(js)

playground/vue/__tests__/vue.spec.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { describe, expect, test } from 'vitest'
22
import { version } from 'vue'
3-
import * as vite from 'vite'
43
import {
54
browserLogs,
65
editFile,
@@ -13,8 +12,6 @@ import {
1312
serverLogs,
1413
} from '~utils'
1514

16-
const isRolldownVite = 'rolldownVersion' in vite
17-
1815
test('should render', async () => {
1916
expect(await page.textContent('h1')).toMatch(`Vue version ${version}`)
2017
})
@@ -489,11 +486,7 @@ describe('template parse options', () => {
489486
})
490487
})
491488

492-
// skip this test for now with rolldown-vite as this requires https://github.com/rolldown/rolldown/issues/4812 to be implemented
493-
test.runIf(isBuild && !isRolldownVite)(
494-
'scoped style should be tree-shakeable',
495-
async () => {
496-
const indexCss = findAssetFile(/index-[\w-]+\.css/)
497-
expect(indexCss).not.toContain('.tree-shake-scoped-style')
498-
},
499-
)
489+
test('scoped style should be tree-shakeable', async () => {
490+
const indexCss = findAssetFile(/index-[\w-]+\.css/)
491+
expect(indexCss).not.toContain('.tree-shake-scoped-style')
492+
})

0 commit comments

Comments
 (0)