File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,9 @@ if (!isBuild) {
217
217
)
218
218
} )
219
219
220
+ // The file will be transformed twice at rolldown hmr and rebuild.
221
+ // It is a performance improvement at vite, it should be ignored at rolldown-vite full bundle mode.
222
+ // Other, not sure why the times is 10, but using the client to check the times is 2.
220
223
if ( ! process . env . VITE_TEST_FULL_BUNDLE_MODE ) {
221
224
test ( 'soft invalidate' , async ( ) => {
222
225
const el = await page . $ ( '.soft-invalidation' )
@@ -242,7 +245,9 @@ if (!isBuild) {
242
245
'soft-invalidation/index.js is transformed 2 times. child is now updated?' ,
243
246
)
244
247
} )
248
+ }
245
249
250
+ if ( ! process . env . VITE_TEST_FULL_BUNDLE_MODE ) {
246
251
test ( 'invalidate in circular dep should not trigger infinite HMR' , async ( ) => {
247
252
const el = await page . $ ( '.invalidation-circular-deps' )
248
253
await untilUpdated ( ( ) => el . textContent ( ) , 'child' )
You can’t perform that action at this time.
0 commit comments