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 ab41baf

Browse filesBrowse files
authored
Update babel.rst
1 parent e74e556 commit ab41baf
Copy full SHA for ab41baf

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-5
lines changed

‎frontend/encore/babel.rst

Copy file name to clipboardExpand all lines: frontend/encore/babel.rst
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ Configuring Babel
77

88
Need to extend the Babel configuration further? The easiest way is via
99
``configureBabel()``:
10-
But first let's install the babel preset.
11-
12-
``yarn add babel-preset-es2017``
13-
This will install the preset that we will use later to configure the babel.
1410

1511
.. code-block:: javascript
1612
@@ -19,7 +15,9 @@ This will install the preset that we will use later to configure the babel.
1915
2016
Encore
2117
// ...
22-
18+
19+
// make sure to install any presets you want to use
20+
// yarn add babel-preset-es2017
2321
// modify the default Babel configuration
2422
.configureBabel(function(babelConfig) {
2523
babelConfig.presets.push('es2017');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.