Skip to content

Commit a6fd9a4

Browse files
committedJul 11, 2017
minor symfony#8058 Added the command to install babel-preset for babel-loader (bogdaniel, javiereguiluz)
This PR was merged into the 3.3 branch. Discussion ---------- Added the command to install babel-preset for babel-loader While testing this bundle i was getting hit by an erorr that i can't find the babel preset es2017 which i solved it by installing. I'm new to this webpack thing and to work like this with javascript. Some people might be in my position and try for hours to solve this. :D Commits ------- b9edef8 Minor reword ab41baf Update babel.rst e74e556 Added the command to install babel-preset for babel-loader
2 parents e9cdbd3 + b9edef8 commit a6fd9a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎frontend/encore/babel.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ Need to extend the Babel configuration further? The easiest way is via
1515
1616
Encore
1717
// ...
18-
19-
// modify the default Babel configuration
18+
19+
// first, install any presets you want to use (e.g. yarn add babel-preset-es2017)
20+
// then, modify the default Babel configuration
2021
.configureBabel(function(babelConfig) {
2122
babelConfig.presets.push('es2017');
2223
})

0 commit comments

Comments
 (0)
Please sign in to comment.