We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137431b commit fe37d75Copy full SHA for fe37d75
docs/features/es2015.md
@@ -55,6 +55,8 @@ module.exports = {
55
}
56
```
57
58
+Alternatively, you can add a `.babelrc` file at the root of your project.
59
+
60
### Compiling `.js` Files with Babel
61
62
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
@@ -36,7 +36,7 @@ module.exports = function (content) {
36
37
// respect user babel options
38
if (this.options.babel) {
39
- defaultLoaders.js = 'babel'
+ defaultLoaders.js = 'babel-loader'
40
41
42
// check if there are custom loaders specified with
0 commit comments