Configure @babel/plugin-proposal-decorators

This commit is contained in:
Shin'ya Ueoka 2019-05-19 21:33:42 +09:00
parent 54d274e9fd
commit c7803e7c29

View file

@ -25,7 +25,12 @@ config = {
loader: 'babel-loader',
options: {
presets: [
{ plugins: ['@babel/plugin-proposal-class-properties'] },
{
plugins: [
["@babel/plugin-proposal-decorators", { "legacy": true }],
'@babel/plugin-proposal-class-properties'
]
},
'@babel/react',
'@babel/preset-typescript'
]