This enables decorators (@property) but it breaks some of our existing widgets (eg: et2_searchbox properties go missing).

I've no idea why.
This commit is contained in:
nathan 2021-07-14 11:59:44 -06:00
parent b0322c549a
commit a3f1e8d367

View File

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