Skip to content

Commit fe37d75

Browse files
committed
update docs regarding babelrc
1 parent 137431b commit fe37d75

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/features/es2015.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ module.exports = {
5555
}
5656
```
5757

58+
Alternatively, you can add a `.babelrc` file at the root of your project.
59+
5860
### Compiling `.js` Files with Babel
5961

6062
Since we are already using Babel, most likely you'll want to compile your normal `.js` files too! Here's how to do it in your Webpack config:

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function (content) {
3636

3737
// respect user babel options
3838
if (this.options.babel) {
39-
defaultLoaders.js = 'babel'
39+
defaultLoaders.js = 'babel-loader'
4040
}
4141

4242
// check if there are custom loaders specified with

0 commit comments

Comments
 (0)