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 d3bc98d commit 0e905baCopy full SHA for 0e905ba
frontend/encore/babel.rst
@@ -49,6 +49,23 @@ cache directory:
49
# On Unix run this command. On Windows, clear this directory manually
50
$ rm -rf node_modules/.cache/babel-loader/
51
52
+If you want to customize the ``preset-env`` configuration, use the ``configureBabelPresetEnv()``
53
+method as follows:
54
+
55
+.. code-block:: javascript
56
57
+ // webpack.config.js
58
+ // ...
59
60
+ Encore
61
62
63
+ .configureBabelPresetEnv((config) => {
64
+ config.useBuiltIns = 'usage';
65
+ config.corejs = 3;
66
+ })
67
+ ;
68
69
Creating a ``.babelrc`` File
70
----------------------------
71
0 commit comments