From c7803e7c2911f63e43611290b996f526c0f8aaf2 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 19 May 2019 21:33:42 +0900 Subject: Configure @babel/plugin-proposal-decorators --- webpack.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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' ] -- cgit v1.2.3