1
0
Fork 0
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:
Tim Neutkens 2017-02-02 03:05:21 +01:00 committed by Arunoda Susiripala
parent a97ca923d8
commit f9717347a4

View file

@ -156,7 +156,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false
}
const transpiled = babelCore.transform(content, {
presets: ['es2015'],
presets: [require.resolve('babel-preset-es2015')],
sourceMaps: dev ? 'both' : false,
inputSourceMap: sourceMap
})