From b4ccb126d98b13fee364842d4c8467d4d40ffbf9 Mon Sep 17 00:00:00 2001 From: nkzawa Date: Sun, 11 Dec 2016 18:09:54 +0900 Subject: [PATCH] ignore .babelrc on babel-loader --- server/build/webpack.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/build/webpack.js b/server/build/webpack.js index 14a6f8e8..9dd11bda 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -107,6 +107,7 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa loader: 'babel', include: nextPagesDir, query: { + babelrc: false, sourceMaps: dev ? 'both' : false, plugins: [ [ @@ -127,6 +128,7 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa return /node_modules/.test(str) && str.indexOf(nextPagesDir) !== 0 }, query: { + babelrc: false, sourceMaps: dev ? 'both' : false, presets: ['es2015', 'react'], plugins: [