Skip to content

Commit

Permalink
remove unnecessary polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 17, 2022
1 parent b0fbec0 commit e4404f8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/next/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import {
import { __ApiPreviewProps } from '../server/api-utils'
import loadConfig, { isTargetLikeServerless } from '../server/config'
import { BuildManifest } from '../server/get-page-files'
import '../server/node-polyfill-fetch'
import { normalizePagePath } from '../server/normalize-page-path'
import { getPagePath } from '../server/require'
import * as ciEnvironment from '../telemetry/ci-info'
Expand Down
1 change: 0 additions & 1 deletion packages/next/build/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../server/node-polyfill-fetch'
import chalk from 'next/dist/compiled/chalk'
import getGzipSize from 'next/dist/compiled/gzip-size'
import textTable from 'next/dist/compiled/text-table'
Expand Down
1 change: 1 addition & 0 deletions packages/next/server/dev/next-dev-server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '../node-polyfill-fetch'
import type { __ApiPreviewProps } from '../api-utils'
import type { CustomRoutes } from '../../lib/load-custom-routes'
import type { FetchEventResult } from '../web/types'
Expand Down
1 change: 0 additions & 1 deletion packages/next/server/dev/static-paths-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { GetStaticPaths } from 'next/types'
import type { NextConfigComplete } from '../config-shared'
import type { UnwrapPromise } from '../../lib/coalesced-function'

import '../node-polyfill-fetch'
import { buildStaticPaths } from '../../build/utils'
import { loadComponents } from '../load-components'
import { setHttpAgentOptions } from '../config'
Expand Down

0 comments on commit e4404f8

Please sign in to comment.