Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"eslint --cache --fix --concurrency auto"
]
},
"packageManager": "pnpm@12.3.4",
"packageManager": "pnpm@12.4.1",
"stackblitz": {
"startCommand": "pnpm --filter='./packages/vite' run dev"
}
Expand Down
24 changes: 18 additions & 6 deletions playground/assets/__tests__/assets.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,12 @@ describe.runIf(isBuild)('css and assets in css in build watch', () => {

editFile('asset/update.js', (code) => code.replace('hello', 'world2'))
await notifyRebuildComplete(watcher)
await page.reload()
await expect.poll(() => page.textContent('.update-content')).toBe('world2')
await expect
.poll(async () => {
await page.reload()
return page.textContent('.update-content')
})
.toBe('world2')

const newMainJsFiles = listAssets('foo').filter((f) =>
/index-[-\w]+\.js$/.test(f),
Expand All @@ -848,16 +852,24 @@ describe.runIf(isBuild)('css and assets in css in build watch', () => {
expect(await getColor('#foo')).toBe('red')
editFile('css/foo.module.css', (code) => code.replace('red', 'blue'))
await notifyRebuildComplete(watcher)
await page.reload()
expect(await getColor('#foo')).toBe('blue')
await expect
.poll(async () => {
await page.reload()
return getColor('#foo')
})
.toBe('blue')
})

test('import with raw query', async () => {
expect(await page.textContent('.raw-query')).toBe('foo')
editFile('static/foo.txt', (code) => code.replace('foo', 'zoo2'))
await notifyRebuildComplete(watcher)
await page.reload()
expect(await page.textContent('.raw-query')).toBe('zoo2')
await expect
.poll(async () => {
await page.reload()
return page.textContent('.raw-query')
})
.toBe('zoo2')
})
})

Expand Down
131 changes: 94 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ minimumReleaseAgeExclude:
- '@vitejs/devtools'
- '@vitejs/devtools-*'
trustPolicy: no-downgrade
trustPolicyExcludePrune: true
trustPolicyExclude:
- '@vercel/detect-agent@1.2.5' # https://github.com/vercel/vercel/issues/17408
- chokidar@4.0.3 # https://github.com/paulmillr/chokidar/issues/1440
- semver@5.7.2 || 6.3.1
- tailwindcss@3.4.18
- undici-types@6.21.0 # https://github.com/nodejs/undici/issues/4666
- semver@6.3.1

dedupePeers: true