From a13c6ccb1182af32923e587a0d86f2eacac0e022 Mon Sep 17 00:00:00 2001 From: Frederick Fogerty Date: Fri, 2 Dec 2016 00:30:36 +1300 Subject: [PATCH] Allow the pages directory to be in node_modules (#318) --- server/build/webpack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/build/webpack.js b/server/build/webpack.js index f731d350..56aff0eb 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -113,7 +113,7 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa loader: 'babel', include: [dir, nextPagesDir], exclude (str) { - return /node_modules/.test(str) && str.indexOf(nextPagesDir) !== 0 + return /node_modules/.test(str) && str.indexOf(nextPagesDir) !== 0 && str.indexOf(dir) !== 0 }, query: { presets: ['es2015', 'react'],