Skip to content

Commit

Permalink
Use the locally compiled version of web-streams-polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Feb 14, 2022
1 parent 05edc74 commit f3b61f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@
"caniuse-lite": "^1.0.30001283",
"postcss": "8.4.5",
"styled-jsx": "5.0.0",
"use-subscription": "1.5.1",
"web-streams-polyfill": "3.0.3"
"use-subscription": "1.5.1"
},
"peerDependencies": {
"fibers": ">= 3.1.0",
Expand Down Expand Up @@ -263,6 +262,7 @@
"uuid": "8.3.2",
"vm-browserify": "1.1.2",
"watchpack": "2.3.1",
"web-streams-polyfill": "3.0.3",
"web-vitals": "2.1.0",
"webpack-sources1": "npm:[email protected]",
"webpack-sources3": "npm:[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions packages/next/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import type { ParsedNextUrl } from '../shared/lib/router/utils/parse-next-url'
import type { PrerenderManifest } from '../build'
import type { Rewrite } from '../lib/load-custom-routes'
import type { BaseNextRequest, BaseNextResponse } from './base-http'
import type { ReadableStream } from 'web-streams-polyfill/ponyfill'
import { TransformStream } from 'web-streams-polyfill/ponyfill'
import type { ReadableStream } from 'next/dist/compiled/web-streams-polyfill/ponyfill'
import { TransformStream } from 'next/dist/compiled/web-streams-polyfill/ponyfill'

import { execOnce } from '../shared/lib/utils'
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/web/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { I18NConfig } from '../config-shared'
import type { ReadableStream } from 'web-streams-polyfill/ponyfill'
import type { ReadableStream } from 'next/dist/compiled/web-streams-polyfill/ponyfill'
import type { NextRequest } from '../web/spec-extension/request'
import type { NextFetchEvent } from '../web/spec-extension/fetch-event'
import type { NextResponse } from './spec-extension/response'
Expand Down
5 changes: 5 additions & 0 deletions packages/next/types/misc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ declare module 'next/dist/compiled/comment-json' {
export = m
}

declare module 'next/dist/compiled/web-streams-polyfill/ponyfill' {
import m from 'web-streams-polyfill/ponyfill'
export = m
}

declare module 'pnp-webpack-plugin' {
import webpack from 'webpack4'

Expand Down

0 comments on commit f3b61f3

Please sign in to comment.