From a3f1e8d3675b3bbcfcba0b09d59a5065ae970752 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 14 Jul 2021 11:59:44 -0600 Subject: [PATCH] This enables decorators (@property) but it breaks some of our existing widgets (eg: et2_searchbox properties go missing). I've no idea why. --- rollup.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 2ba5ced810..812e2158c6 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -100,7 +100,12 @@ const config = { // plugins: stage3Syntax, errorRecovery: true }, - presets: ['@babel/preset-typescript'] + presets: ['@babel/preset-typescript'], + plugins: [ + // These two to use LitElement decorators + '@babel/plugin-proposal-class-properties', + ['@babel/plugin-proposal-decorators', {decoratorsBeforeExport: true}], + ] }, function (err, result) { if (err) return reject(err);