1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

ignore .babelrc on babel-loader

This commit is contained in:
nkzawa 2016-12-11 18:09:54 +09:00
parent 3de4788e0e
commit b4ccb126d9

View file

@ -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: [