Skip to content

Commit

Permalink
Use babel-loader instead of babel (#330)
Browse files Browse the repository at this point in the history
webpck 2.1.0-beta.26 does not support shorthand loader names
  • Loading branch information
danez authored Nov 16, 2016
1 parent 501d60d commit 13c34a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module: {
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel', // 'babel-loader' is also a valid name to reference
loader: 'babel-loader',
query: {
presets: ['es2015']
}
Expand All @@ -48,7 +48,7 @@ module: {
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel?presets[]=es2015'
loader: 'babel-loader?presets[]=es2015'
}
]
}
Expand All @@ -62,7 +62,7 @@ module: {
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
loader: 'babel-loader',
query: {
presets: ['es2015']
}
Expand Down Expand Up @@ -114,7 +114,7 @@ loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
loader: 'babel-loader',
query: {
presets: ['es2015'],
plugins: ['transform-runtime']
Expand All @@ -125,7 +125,7 @@ loaders: [

### The node API for `babel` has been moved to `babel-core`.

If you receive this message it means that you have the npm package `babel` installed and use the short notation of the loader in the webpack config:
If you receive this message it means that you have the npm package `babel` installed and use the short notation of the loader in the webpack config (which is not valid anymore as of webpack 2.x):
```js
{
test: /\.js$/,
Expand Down

0 comments on commit 13c34a5

Please sign in to comment.