Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a6fd9a4

Browse filesBrowse files
committed
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
Copy full SHA for a6fd9a4

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎frontend/encore/babel.rst

Copy file name to clipboardExpand all lines: frontend/encore/babel.rst
+3-2Lines changed: 3 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.