lit / lit-element

LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.
https://lit-element.polymer-project.org
BSD 3-Clause "New" or "Revised" License
4.49k stars 318 forks source link

Why lit-element not support babel decorators plugin use legacy #1140

Closed WUSO01 closed 2 years ago

WUSO01 commented 3 years ago

Use ['@babel/plugin-proposal-decorators', { legacy: true }] , the @query return undefined and theupdated(changedProperties) return nothing. Maybe other problems I didn't find

I know there is no problem using decoratorsBeforeExport.

links: #1138 , #1121

sorvell commented 3 years ago

Thanks for the PR on this. If we can get testing setup for Babel legacy decorators, we can merge this.

sorvell commented 2 years ago

Closing as current support is documented at: https://lit.dev/docs/components/decorators/#enabling-decorators.