Skip to content

Commit

Permalink
Allow the pages directory to be in node_modules (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickfogerty authored and nkzawa committed Dec 1, 2016
1 parent 7a66870 commit a13c6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit a13c6cc

Please sign in to comment.