Skip to content

Commit

Permalink
Upgrade webpack (vercel#12082)
Browse files Browse the repository at this point in the history
* Upgrade webpack

* rebundle
  • Loading branch information
Timer authored Apr 21, 2020
1 parent c08646a commit 07b24e6
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 735 deletions.
12 changes: 0 additions & 12 deletions packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,6 @@ export default async function getBaseWebpackConfig(
const hasReactRefresh =
dev && !isServer && config.experimental.reactRefresh === true

// Inject additional features into webpack HMR runtime
if (hasReactRefresh) {
const injectPath = require.resolve(
'webpack/lib/HotModuleReplacement.runtime'
)
const overridePath = require.resolve(
'./webpack/lib/HotModuleReplacement.runtime'
)
require(overridePath)
require.cache[injectPath] = require.cache[overridePath]
}

const distDir = path.join(dir, config.distDir)
const defaultLoaders = {
babel: {
Expand Down
Loading

0 comments on commit 07b24e6

Please sign in to comment.