Skip to content

Commit

Permalink
fix(web-worker): deps externality
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 29, 2022
1 parent b2362bc commit b5d97b0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/web-worker/package.json
Expand Up @@ -31,6 +31,9 @@
"peerDependencies": {
"vitest": "*"
},
"dependencies": {
"vite-node": "workspace:*"
},
"devDependencies": {
"rollup": "^2.70.1"
}
Expand Down
1 change: 1 addition & 0 deletions packages/web-worker/rollup.config.js
Expand Up @@ -15,6 +15,7 @@ const external = [
...Object.keys(pkg.peerDependencies || {}),
'vitest',
'vitest/node',
'vite-node/utils',
]

const plugins = [
Expand Down
2 changes: 1 addition & 1 deletion packages/web-worker/src/pure.ts
@@ -1,7 +1,7 @@
/* eslint-disable no-restricted-imports */
import { VitestRunner } from 'vitest/node'
import type { WorkerGlobalState } from 'vitest'
import { toFilePath } from '../../vite-node/src/utils'
import { toFilePath } from 'vite-node/utils'

function getWorkerState(): WorkerGlobalState {
// @ts-expect-error untyped global
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b5d97b0

Please sign in to comment.