File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,19 @@ Need to extend the Babel configuration further? The easiest way is via
18
18
19
19
.configureBabel (function (babelConfig ) {
20
20
// add additional presets
21
- // babelConfig.presets.push('@babel/preset-flow');
21
+ babelConfig .presets .push (' @babel/preset-flow' );
22
22
23
23
// no plugins are added by default, but you can add some
24
- // babelConfig.plugins.push('styled-jsx/babel');
24
+ babelConfig .plugins .push (' styled-jsx/babel' );
25
25
}, {
26
26
// node_modules is not processed through Babel by default
27
27
// but you can whitelist specific modules to process
28
- // include_node_modules: ['foundation-sites']
28
+ include_node_modules: [' foundation-sites' ],
29
29
30
- // or completely control the exclude
31
- // exclude: /bower_components/
30
+ // or completely control the exclude rule (note that you
31
+ // can't use both "include_node_modules" and "exclude" at
32
+ // the same time)
33
+ exclude: / bower_components/
32
34
})
33
35
;
34
36
You can’t perform that action at this time.
0 commit comments