Skip to content

Commit f3b61f3

Browse files
committed
Use the locally compiled version of web-streams-polyfill
1 parent 05edc74 commit f3b61f3

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

packages/next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@
7373
"caniuse-lite": "^1.0.30001283",
7474
"postcss": "8.4.5",
7575
"styled-jsx": "5.0.0",
76-
"use-subscription": "1.5.1",
77-
"web-streams-polyfill": "3.0.3"
76+
"use-subscription": "1.5.1"
7877
},
7978
"peerDependencies": {
8079
"fibers": ">= 3.1.0",
@@ -263,6 +262,7 @@
263262
"uuid": "8.3.2",
264263
"vm-browserify": "1.1.2",
265264
"watchpack": "2.3.1",
265+
"web-streams-polyfill": "3.0.3",
266266
"web-vitals": "2.1.0",
267267
"webpack-sources1": "npm:[email protected]",
268268
"webpack-sources3": "npm:[email protected]",

packages/next/server/next-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import type { ParsedNextUrl } from '../shared/lib/router/utils/parse-next-url'
88
import type { PrerenderManifest } from '../build'
99
import type { Rewrite } from '../lib/load-custom-routes'
1010
import type { BaseNextRequest, BaseNextResponse } from './base-http'
11-
import type { ReadableStream } from 'web-streams-polyfill/ponyfill'
12-
import { TransformStream } from 'web-streams-polyfill/ponyfill'
11+
import type { ReadableStream } from 'next/dist/compiled/web-streams-polyfill/ponyfill'
12+
import { TransformStream } from 'next/dist/compiled/web-streams-polyfill/ponyfill'
1313

1414
import { execOnce } from '../shared/lib/utils'
1515
import {

packages/next/server/web/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { I18NConfig } from '../config-shared'
2-
import type { ReadableStream } from 'web-streams-polyfill/ponyfill'
2+
import type { ReadableStream } from 'next/dist/compiled/web-streams-polyfill/ponyfill'
33
import type { NextRequest } from '../web/spec-extension/request'
44
import type { NextFetchEvent } from '../web/spec-extension/fetch-event'
55
import type { NextResponse } from './spec-extension/response'

packages/next/types/misc.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@ declare module 'next/dist/compiled/comment-json' {
331331
export = m
332332
}
333333

334+
declare module 'next/dist/compiled/web-streams-polyfill/ponyfill' {
335+
import m from 'web-streams-polyfill/ponyfill'
336+
export = m
337+
}
338+
334339
declare module 'pnp-webpack-plugin' {
335340
import webpack from 'webpack4'
336341

0 commit comments

Comments
 (0)