Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Add webpack example to readme. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Apr 29, 2016
1 parent af52f8e commit 7352d96
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,22 @@ require('babel-core').transform('code', {
});
```

###### webpack.config.js

```js
'module': {
'loaders': [{
'loader': 'babel',
'test': /\.js$/,
'exclude': /node_modules/,
'query': {
'plugins': ['lodash'],
'presets': ['es2015']
}
}]
}
```

## FAQ

> Do import specifiers, e.g. `import { x } from 'lodash'`, work?
Expand Down

0 comments on commit 7352d96

Please sign in to comment.