From 9a09de2feba8f991b509b842a4120d1b59a32cbf Mon Sep 17 00:00:00 2001 From: Vasyl Berezovyy Date: Sat, 20 Oct 2018 17:59:43 +0300 Subject: [PATCH] Remove ignore plugin from webpack build flow (#5394) --- packages/next/build/webpack.js | 10 ---------- 1 file changed, 10 deletions(-) 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(),