Configure @babel/plugin-proposal-decorators
This commit is contained in:
parent
54d274e9fd
commit
c7803e7c29
1 changed files with 6 additions and 1 deletions
|
@ -25,7 +25,12 @@ config = {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
presets: [
|
presets: [
|
||||||
{ plugins: ['@babel/plugin-proposal-class-properties'] },
|
{
|
||||||
|
plugins: [
|
||||||
|
["@babel/plugin-proposal-decorators", { "legacy": true }],
|
||||||
|
'@babel/plugin-proposal-class-properties'
|
||||||
|
]
|
||||||
|
},
|
||||||
'@babel/react',
|
'@babel/react',
|
||||||
'@babel/preset-typescript'
|
'@babel/preset-typescript'
|
||||||
]
|
]
|
||||||
|
|
Reference in a new issue