Skip to content

Commit ab41baf

Browse files
authored
Update babel.rst
1 parent e74e556 commit ab41baf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

frontend/encore/babel.rst

Lines 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)