Skip to content

Commit e4404f8

Browse files
committed
remove unnecessary polyfills
1 parent b0fbec0 commit e4404f8

File tree

4 files changed

+1
-3
lines changed

4 files changed

+1
-3
lines changed

packages/next/build/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ import {
5959
import { __ApiPreviewProps } from '../server/api-utils'
6060
import loadConfig, { isTargetLikeServerless } from '../server/config'
6161
import { BuildManifest } from '../server/get-page-files'
62-
import '../server/node-polyfill-fetch'
6362
import { normalizePagePath } from '../server/normalize-page-path'
6463
import { getPagePath } from '../server/require'
6564
import * as ciEnvironment from '../telemetry/ci-info'

packages/next/build/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import '../server/node-polyfill-fetch'
21
import chalk from 'next/dist/compiled/chalk'
32
import getGzipSize from 'next/dist/compiled/gzip-size'
43
import textTable from 'next/dist/compiled/text-table'

packages/next/server/dev/next-dev-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import '../node-polyfill-fetch'
12
import type { __ApiPreviewProps } from '../api-utils'
23
import type { CustomRoutes } from '../../lib/load-custom-routes'
34
import type { FetchEventResult } from '../web/types'

packages/next/server/dev/static-paths-worker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { GetStaticPaths } from 'next/types'
22
import type { NextConfigComplete } from '../config-shared'
33
import type { UnwrapPromise } from '../../lib/coalesced-function'
44

5-
import '../node-polyfill-fetch'
65
import { buildStaticPaths } from '../../build/utils'
76
import { loadComponents } from '../load-components'
87
import { setHttpAgentOptions } from '../config'

0 commit comments

Comments
 (0)