Skip to content

Commit dcbb418

Browse files
committed
Do not snapshot empty virtual modules
1 parent 1afa91c commit dcbb418

File tree

3 files changed

+1
-0
lines changed

3 files changed

+1
-0
lines changed
-410 Bytes
Binary file not shown.
-90 Bytes
Binary file not shown.

__tests__/frameworks/vite/util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export async function compile(options: InlineConfig, file: string): Promise<stri
5555
const code = modules
5656
.filter(module => module.transform)
5757
.filter(module => !module.module.url.includes('node_modules'))
58+
.filter(module => !module.module.url.includes('virtual:empty:'))
5859
.map(module => `=== ${module.module.url} ===\n${module.transform.code}`).join('\n\n')
5960

6061
// normalize paths

0 commit comments

Comments
 (0)