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);