diff --git a/packages/next/build/webpack.js b/packages/next/build/webpack.js index 3aeb832a..56ef6ace 100644 --- a/packages/next/build/webpack.js +++ b/packages/next/build/webpack.js @@ -257,16 +257,6 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i name: isServer ? 'server' : 'client' }), dev && !isServer && new FriendlyErrorsWebpackPlugin(), - new webpack.IgnorePlugin(/(precomputed)/, /node_modules.+(elliptic)/), - // This removes prop-types-exact in production, as it's not used there. - !dev && new webpack.IgnorePlugin({ - checkResource: (resource) => { - return /prop-types-exact/.test(resource) - }, - checkContext: (context) => { - return context.indexOf(NEXT_PROJECT_ROOT_DIST) !== -1 - } - }), // Even though require.cache is server only we have to clear assets from both compilations // This is because the client compilation generates the build manifest that's used on the server side dev && new NextJsRequireCacheHotReloader(),