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 ec6f46b

Browse filesBrowse files
committed
Uncomment some code in "Configuring Babel"
1 parent d983ec4 commit ec6f46b
Copy full SHA for ec6f46b

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+7
-5
lines changed

‎frontend/encore/babel.rst

Copy file name to clipboardExpand all lines: frontend/encore/babel.rst
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@ Need to extend the Babel configuration further? The easiest way is via
1818
1919
.configureBabel(function(babelConfig) {
2020
// add additional presets
21-
// babelConfig.presets.push('@babel/preset-flow');
21+
babelConfig.presets.push('@babel/preset-flow');
2222
2323
// 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');
2525
}, {
2626
// node_modules is not processed through Babel by default
2727
// but you can whitelist specific modules to process
28-
// include_node_modules: ['foundation-sites']
28+
include_node_modules: ['foundation-sites'],
2929
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/
3234
})
3335
;
3436

0 commit comments

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