Skip to content

Commit

Permalink
Revert "fix: register webpack hook before loading config"
Browse files Browse the repository at this point in the history
This reverts commit 2a07c75.
  • Loading branch information
merceyz committed Feb 9, 2021
1 parent 429f2de commit e849c56
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/next/next-server/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,6 @@ export default function loadConfig(

// If config file was found
if (path?.length) {
// hook the Node.js require so that webpack requires are
// routed to the bundled webpack version
require('../../build/webpack/require-hook')

const userConfigModule = require(path)
const userConfig = normalizeConfig(
phase,
Expand Down

0 comments on commit e849c56

Please sign in to comment.