From b408b3b032319a0789cd0c0b930e80611ea87945 Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Thu, 28 Oct 2021 17:41:17 +0800 Subject: [PATCH] fix: keep default options for @babel/plugin-proposal-decorators and @babel/plugin-proposal-class-properties --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9e91ab6..cd3fbc1 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ module.exports = function(api) { '@babel/plugin-proposal-do-expressions', // Stage 2 - ['@babel/plugin-proposal-decorators', { 'legacy': true }], + '@babel/plugin-proposal-decorators', '@babel/plugin-proposal-function-sent', '@babel/plugin-proposal-export-namespace-from', '@babel/plugin-proposal-numeric-separator', @@ -33,7 +33,7 @@ module.exports = function(api) { // Stage 3 '@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-import-meta', - ['@babel/plugin-proposal-class-properties', { 'loose': true }], + '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-json-strings', ] };