Commit ea77b415 authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by 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
parent b6294904
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"ansi-html": "0.0.7", "ansi-html": "0.0.7",
"babel-core": "6.24.0", "babel-core": "6.24.0",
"babel-generator": "6.24.0", "babel-generator": "6.24.0",
"babel-loader": "6.4.1", "babel-loader": "7.0.0",
"babel-plugin-module-resolver": "2.6.2", "babel-plugin-module-resolver": "2.6.2",
"babel-plugin-react-require": "3.0.0", "babel-plugin-react-require": "3.0.0",
"babel-plugin-transform-class-properties": "6.22.0", "babel-plugin-transform-class-properties": "6.22.0",
......
...@@ -146,7 +146,6 @@ export default async function createCompiler (dir, { dev = false, quiet = false, ...@@ -146,7 +146,6 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
const mainBabelOptions = { const mainBabelOptions = {
cacheDirectory: true, cacheDirectory: true,
sourceMaps: dev ? 'both' : false,
presets: [] presets: []
} }
...@@ -246,7 +245,6 @@ export default async function createCompiler (dir, { dev = false, quiet = false, ...@@ -246,7 +245,6 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
options: { options: {
babelrc: false, babelrc: false,
cacheDirectory: true, cacheDirectory: true,
sourceMaps: dev ? 'both' : false,
presets: [require.resolve('./babel/preset')] presets: [require.resolve('./babel/preset')]
} }
}, { }, {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment