Skip to content

Commit

Permalink
Adjust name
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Nov 1, 2019
1 parent 1d62898 commit cc105fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export default async function build(dir: string, conf = null): Promise<void> {

if (
error.indexOf('private-next-pages') > -1 ||
error.indexOf('__internal_fetch')
error.indexOf('__next_polyfill__') > -1
) {
throw new Error(
'> webpack config.resolve.alias was incorrectly overriden. https://err.sh/zeit/next.js/invalid-resolve-alias'
Expand Down
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function getOptimizedAliases(isServer: boolean): { [pkg: string]: string } {

const stubWindowFetch = path.join(__dirname, 'polyfills', 'fetch.js')
return {
__internal_fetch: require.resolve('whatwg-fetch'),
__next_polyfill__fetch: require.resolve('whatwg-fetch'),
unfetch$: stubWindowFetch,
'isomorphic-unfetch$': stubWindowFetch,
'whatwg-fetch$': stubWindowFetch,
Expand Down
2 changes: 1 addition & 1 deletion packages/next/client/polyfills.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '__internal_fetch'
import '__next_polyfill__fetch'

0 comments on commit cc105fc

Please sign in to comment.