Skip to content

Commit 2de117a

Browse files
authored
refactor: avoid using isFileServingAllowed from Vite (#9490)
1 parent 0c7eaac commit 2de117a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vitest/src/api/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import { performance } from 'node:perf_hooks'
2020
import { noop } from '@vitest/utils/helpers'
2121
import { createBirpc } from 'birpc'
2222
import { parse, stringify } from 'flatted'
23-
import { isFileServingAllowed } from 'vite'
2423
import { WebSocketServer } from 'ws'
2524
import { API_PATH } from '../constants'
25+
import { isFileServingAllowed } from '../node/vite'
2626
import { getTestFileEnvironment } from '../utils/environments'
2727
import { getModuleGraph } from '../utils/graph'
2828
import { stringifyReplace } from '../utils/serialization'

0 commit comments

Comments
 (0)