Skip to content

Commit ba3263b

Browse files
mstijakCompuIves
authored andcommitted
Add commonly used Babel plugins to the CxJS template (#993)
1 parent 4525c1c commit ba3263b

File tree

1 file changed

+4
-0
lines changed
  • packages/common/templates/configuration/babelrc

1 file changed

+4
-0
lines changed

packages/common/templates/configuration/babelrc/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,14 @@ const config: ConfigurationFile = {
145145
useBuiltIns: true,
146146
},
147147
],
148+
'stage-2',
148149
],
149150
plugins: [
150151
['transform-cx-jsx'],
151152
['transform-react-jsx', { pragma: 'VDOM.createElement' }],
153+
'transform-function-bind',
154+
'transform-runtime',
155+
'transform-regenerator',
152156
],
153157
},
154158
null,

0 commit comments

Comments
 (0)