Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Couto committed May 15, 2015
1 parent 794e2fc commit 57566a7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,24 @@ module: {
}
```

or in a less used format, you can set an object in the webpack config.
or by using the query property:

```javascript
babel: {
optional: ['runtime'],
stage: 0
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel'
loader: 'babel',
query: {
optional: ['runtime'],
stage: 0
}
}
]
}
```

__Note:__ options given directly to the loader take precedence in relation to the *global* object.

This loader also supports the following loader-specific option:

* `cacheDirectory`: When set, the given directory will be used to cache the results of the loader. Future webpack builds will attempt to read from the cache to avoid needing to run the potentially expensive Babel recompilation process on each run. A value of `true` will cause the loader to use the default OS temporary file directory.
Expand Down

0 comments on commit 57566a7

Please sign in to comment.