1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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
This commit is contained in:
Arunoda Susiripala 2017-04-22 07:18:53 +05:30 committed by GitHub
parent b629490469
commit ea77b41570
3 changed files with 1227 additions and 1141 deletions

View file

@ -46,7 +46,7 @@
"ansi-html": "0.0.7",
"babel-core": "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-react-require": "3.0.0",
"babel-plugin-transform-class-properties": "6.22.0",

View file

@ -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')]
}
}, {

2364
yarn.lock

File diff suppressed because it is too large Load diff