diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-19 21:33:42 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-19 21:33:42 +0900 |
commit | c7803e7c2911f63e43611290b996f526c0f8aaf2 (patch) | |
tree | c6b91838d494645a8781b893c767ba34228df653 | |
parent | 54d274e9fd2855664048eedb805a6762d6acf9fa (diff) |
Configure @babel/plugin-proposal-decorators
-rw-r--r-- | webpack.config.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index a845375..540418d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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' ] |