From ec6f46b8894c34eb68e4fffc0fd94c16a52689d0 Mon Sep 17 00:00:00 2001 From: Lyrkan Date: Sat, 23 Feb 2019 23:14:21 +0100 Subject: [PATCH] Uncomment some code in "Configuring Babel" --- frontend/encore/babel.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/encore/babel.rst b/frontend/encore/babel.rst index 2affea43c5f..954b667d3cf 100644 --- a/frontend/encore/babel.rst +++ b/frontend/encore/babel.rst @@ -18,17 +18,19 @@ Need to extend the Babel configuration further? The easiest way is via .configureBabel(function(babelConfig) { // add additional presets - // babelConfig.presets.push('@babel/preset-flow'); + babelConfig.presets.push('@babel/preset-flow'); // no plugins are added by default, but you can add some - // babelConfig.plugins.push('styled-jsx/babel'); + babelConfig.plugins.push('styled-jsx/babel'); }, { // node_modules is not processed through Babel by default // but you can whitelist specific modules to process - // include_node_modules: ['foundation-sites'] + include_node_modules: ['foundation-sites'], - // or completely control the exclude - // exclude: /bower_components/ + // or completely control the exclude rule (note that you + // can't use both "include_node_modules" and "exclude" at + // the same time) + exclude: /bower_components/ }) ;