Skip to content

Commit

Permalink
remove un-needed alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 21, 2021
1 parent b6f9a9f commit e95e7f8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/next/build/webpack-config.ts
Expand Up @@ -341,10 +341,6 @@ export default async function getBaseWebpackConfig(
}
}

const clientResolveRewrites = require.resolve(
'next/dist/next-server/lib/router/utils/resolve-rewrites'
)

const resolveConfig = {
// Disable .mjs for node_modules bundling
extensions: isServer
Expand Down Expand Up @@ -383,9 +379,6 @@ export default async function getBaseWebpackConfig(
[DOT_NEXT_ALIAS]: distDir,
...getOptimizedAliases(isServer),
...getReactProfilingInProduction(),
[clientResolveRewrites]: hasRewrites
? clientResolveRewrites
: require.resolve('next/dist/client/dev/noop.js'),
},
mainFields: isServer ? ['main', 'module'] : ['browser', 'module', 'main'],
plugins: isWebpack5
Expand Down

0 comments on commit e95e7f8

Please sign in to comment.