Use @babel/preset-react preset
This commit is contained in:
parent
d02aa74413
commit
c268768187
4 changed files with 1022 additions and 10810 deletions
12
babel.config.js
Normal file
12
babel.config.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
presets: [
|
||||
['@babel/preset-env', { targets: { node: 'current' } }],
|
||||
'@babel/preset-react',
|
||||
],
|
||||
plugins: [
|
||||
'@babel/plugin-transform-runtime',
|
||||
'@babel/plugin-syntax-function-bind',
|
||||
'@babel/plugin-proposal-function-bind',
|
||||
['@babel/plugin-proposal-class-properties', { loose: true }],
|
||||
],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue