Skip to content

Commit

Permalink
fix(browser): don't import from "vite"
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jul 12, 2024
1 parent e9f9adc commit 3565541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/browser/src/node/plugins/pluginDynamicImport.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from 'vite'
import type { Plugin } from 'vitest/config'
import { injectDynamicImport } from '../esmInjector'

const regexDynamicImport = /import\s*\(/
Expand Down
3 changes: 1 addition & 2 deletions packages/browser/src/node/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { createBirpc } from 'birpc'
import { parse, stringify } from 'flatted'
import type { WebSocket } from 'ws'
import { WebSocketServer } from 'ws'
import { isFileServingAllowed } from 'vite'
import type { BrowserCommandContext } from 'vitest/node'
import { createDebugger } from 'vitest/node'
import { createDebugger, isFileServingAllowed } from 'vitest/node'
import type { WebSocketBrowserEvents, WebSocketBrowserHandlers } from './types'
import type { BrowserServer } from './server'
import { resolveMock } from './resolveMock'
Expand Down

0 comments on commit 3565541

Please sign in to comment.