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:
parent
3de4788e0e
commit
b4ccb126d9
|
@ -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: [
|
||||
|
|
Loading…
Reference in a new issue