mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Resolve preset es2015 from next directory (#949)
This commit is contained in:
parent
a97ca923d8
commit
f9717347a4
|
@ -156,7 +156,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const transpiled = babelCore.transform(content, {
|
const transpiled = babelCore.transform(content, {
|
||||||
presets: ['es2015'],
|
presets: [require.resolve('babel-preset-es2015')],
|
||||||
sourceMaps: dev ? 'both' : false,
|
sourceMaps: dev ? 'both' : false,
|
||||||
inputSourceMap: sourceMap
|
inputSourceMap: sourceMap
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue