Skip to content

Commit

Permalink
feat: use undici
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 17, 2022
1 parent b6435f9 commit 79c8fb0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"kill-port": "^1.6.1",
"lint-staged": "^12.4.1",
"minimist": "^1.2.6",
"node-fetch-native": "^0.1.3",
"npm-run-all": "^4.1.5",
"picocolors": "^1.0.0",
"playwright-chromium": "^1.21.1",
Expand All @@ -82,6 +81,7 @@
"ts-node": "^10.7.0",
"typescript": "^4.6.4",
"unbuild": "^0.7.4",
"undici": "^5.2.0",
"vite": "workspace:*",
"vitepress": "^0.22.4",
"vitest": "^0.12.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { platform } from 'os'
import { fetch } from 'undici'
import { port } from './serve'
import fetch from 'node-fetch-native'
import { page, untilUpdated } from '~utils'
import { platform } from 'os'

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

Expand Down
2 changes: 1 addition & 1 deletion playground/ssr-html/__tests__/ssr-html.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fetch from 'node-fetch-native'
import { fetch } from 'undici'
import { port } from './serve'
import { page } from '~utils'

Expand Down
2 changes: 1 addition & 1 deletion playground/ssr-pug/__tests__/ssr-pug.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fetch from 'node-fetch-native'
import { fetch } from 'undici'
import { port } from './serve'
import { page } from '~utils'

Expand Down
2 changes: 1 addition & 1 deletion playground/ssr-react/__tests__/ssr-react.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fetch from 'node-fetch-native'
import { fetch } from 'undici'
import { port } from './serve'
import { browserLogs, editFile, page, untilUpdated } from '~utils'

Expand Down
2 changes: 1 addition & 1 deletion playground/ssr-vue/__tests__/ssr-vue.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { resolve } from 'path'
import fetch from 'node-fetch-native'
import { fetch } from 'undici'
import { port } from './serve'
import {
browserLogs,
Expand Down
13 changes: 7 additions & 6 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 79c8fb0

Please sign in to comment.