提交 ea77b415 编写于 作者: A Arunoda Susiripala 提交者: GitHub

Use babel-loader 7 beta. (#1495)

* Use babel-loader 7 beta.
This will get rid of the DeprecationWarning printed while
starting next.
Also this is the version recommened to use with Webpack 2.

* Update to the babel-loader-7
上级 b6294904
......@@ -146,7 +146,6 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
const mainBabelOptions = {
cacheDirectory: true,
sourceMaps: dev ? 'both' : false,
presets: []
}
......@@ -246,7 +245,6 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
options: {
babelrc: false,
cacheDirectory: true,
sourceMaps: dev ? 'both' : false,
presets: [require.resolve('./babel/preset')]
}
}, {
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册