Skip to content

Commit 79c8fb0

Browse files
committed
feat: use undici
1 parent b6435f9 commit 79c8fb0

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"kill-port": "^1.6.1",
6969
"lint-staged": "^12.4.1",
7070
"minimist": "^1.2.6",
71-
"node-fetch-native": "^0.1.3",
7271
"npm-run-all": "^4.1.5",
7372
"picocolors": "^1.0.0",
7473
"playwright-chromium": "^1.21.1",
@@ -82,6 +81,7 @@
8281
"ts-node": "^10.7.0",
8382
"typescript": "^4.6.4",
8483
"unbuild": "^0.7.4",
84+
"undici": "^5.2.0",
8585
"vite": "workspace:*",
8686
"vitepress": "^0.22.4",
8787
"vitest": "^0.12.4",

playground/optimize-missing-deps/__test__/optimize-missing-deps.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { platform } from 'os'
2+
import { fetch } from 'undici'
13
import { port } from './serve'
2-
import fetch from 'node-fetch-native'
34
import { page, untilUpdated } from '~utils'
4-
import { platform } from 'os'
55

66
const url = `http://localhost:${port}/`
77

playground/ssr-html/__tests__/ssr-html.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fetch from 'node-fetch-native'
1+
import { fetch } from 'undici'
22
import { port } from './serve'
33
import { page } from '~utils'
44

playground/ssr-pug/__tests__/ssr-pug.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fetch from 'node-fetch-native'
1+
import { fetch } from 'undici'
22
import { port } from './serve'
33
import { page } from '~utils'
44

playground/ssr-react/__tests__/ssr-react.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fetch from 'node-fetch-native'
1+
import { fetch } from 'undici'
22
import { port } from './serve'
33
import { browserLogs, editFile, page, untilUpdated } from '~utils'
44

playground/ssr-vue/__tests__/ssr-vue.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { resolve } from 'path'
2-
import fetch from 'node-fetch-native'
2+
import { fetch } from 'undici'
33
import { port } from './serve'
44
import {
55
browserLogs,

pnpm-lock.yaml

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)