Skip to content

Commit 4154e1b

Browse files
committed
wip: update
1 parent 7882189 commit 4154e1b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

playground/hmr-full-bundle-mode/__tests__/hmr-full-bundle-mode.spec.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ if (isBuild) {
2121
})
2222

2323
// BUNDLED -> GENERATE_HMR_PATCH -> BUNDLING -> BUNDLE_ERROR -> BUNDLING -> BUNDLED
24-
// FIXME: https://github.com/rolldown/rolldown/issues/6319
25-
test.skip('handle bundle error', async () => {
24+
test('handle bundle error', async () => {
2625
editFile('main.js', (code) =>
2726
code.replace("text('.app', 'hello')", "text('.app', 'hello'); text("),
2827
)
@@ -71,8 +70,7 @@ if (isBuild) {
7170
})
7271

7372
// BUNDLED -> GENERATING_HMR_PATCH -> BUNDLED
74-
// FIXME: https://github.com/rolldown/rolldown/issues/6319
75-
test.skip('handle generate hmr patch error', async () => {
73+
test('handle generate hmr patch error', async () => {
7674
await expect.poll(() => page.textContent('.hmr')).toBe('hello')
7775
editFile('hmr.js', (code) =>
7876
code.replace("const foo = 'hello'", "const foo = 'hello"),
@@ -101,7 +99,8 @@ if (isBuild) {
10199
})
102100

103101
// BUNDLED -> GENERATING_HMR_PATCH -> GENERATING_HMR_PATCH -> BUNDLED
104-
test('continuous generate hmr patch', async () => {
102+
// FIXME: https://github.com/rolldown/rolldown/issues/6648
103+
test.skip('continuous generate hmr patch', async () => {
105104
editFile('hmr.js', (code) =>
106105
code.replace(
107106
"const foo = 'hello'",

playground/hmr/vite.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ import { defineConfig } from 'vite'
44
import type { Plugin } from 'vite'
55
import { TestCssLinkPlugin } from './css-link/plugin'
66

7-
export default defineConfig({
7+
export default defineConfig(({ command }) => ({
88
experimental: {
99
hmrPartialAccept: true,
1010
},
1111
build: {
1212
rollupOptions: {
1313
input: [
1414
path.resolve(import.meta.dirname, './index.html'),
15-
path.resolve(import.meta.dirname, './missing-import/index.html'),
15+
...(command === 'build'
16+
? []
17+
: [path.resolve(import.meta.dirname, './missing-import/index.html')]),
1618
path.resolve(
1719
import.meta.dirname,
1820
'./unicode-path/中文-にほんご-한글-🌕🌖🌗/index.html',
@@ -56,7 +58,7 @@ export default defineConfig({
5658
watchCssDepsPlugin(),
5759
TestCssLinkPlugin(),
5860
],
59-
})
61+
}))
6062

6163
function virtualPlugin(): Plugin {
6264
let num = 0

0 commit comments

Comments
 (0)