Skip to content

Commit 3565541

Browse files
committedJul 12, 2024··
fix(browser): don't import from "vite"
1 parent e9f9adc commit 3565541

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎packages/browser/src/node/plugins/pluginDynamicImport.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Plugin } from 'vite'
1+
import type { Plugin } from 'vitest/config'
22
import { injectDynamicImport } from '../esmInjector'
33

44
const regexDynamicImport = /import\s*\(/

‎packages/browser/src/node/rpc.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import { createBirpc } from 'birpc'
44
import { parse, stringify } from 'flatted'
55
import type { WebSocket } from 'ws'
66
import { WebSocketServer } from 'ws'
7-
import { isFileServingAllowed } from 'vite'
87
import type { BrowserCommandContext } from 'vitest/node'
9-
import { createDebugger } from 'vitest/node'
8+
import { createDebugger, isFileServingAllowed } from 'vitest/node'
109
import type { WebSocketBrowserEvents, WebSocketBrowserHandlers } from './types'
1110
import type { BrowserServer } from './server'
1211
import { resolveMock } from './resolveMock'

0 commit comments

Comments
 (0)
Please sign in to comment.