Skip to content

Commit

Permalink
Warining issued by loader-utils
Browse files Browse the repository at this point in the history
When run build **loader-utils** issued this deprecation message:
```
loader option has been deprecated - replace with "use"
(node:22316) DeprecationWarning: loaderUtils.parseQuery() received a non-string
value which can be problematic
```
So based on **loader-utils** (See: webpack/loader-utils#56)  and **babel-loader** (See: https://github.com/babel/babel-loader#options) documentation.  **options** have been removed as object and used query string instead.
  • Loading branch information
NickNaso authored Mar 11, 2017
1 parent 5fc24de commit 461fd38
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions webpack2/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ const webpackCommon = {
exclude: /node_modules/,
use: [
{
loader: 'babel-loader',
options: {
presets: ['es2015']
}
loader: 'babel-loader?presets[]=es2015'
}
]
},
Expand Down

0 comments on commit 461fd38

Please sign in to comment.