Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @babel/plugin-proposal-decorators plugin #14

Open
vsDizzy opened this issue Oct 1, 2022 · 2 comments
Open

Add @babel/plugin-proposal-decorators plugin #14

vsDizzy opened this issue Oct 1, 2022 · 2 comments

Comments

@vsDizzy
Copy link

vsDizzy commented Oct 1, 2022

I'm trying to load typescript code with decorators:

@customElement('my-element')
export class MyElement extends LitElement {...}
Uncaught (in promise) SyntaxError: /http:/127.0.0.1:5500/app.ts: Support for the experimental syntax 'decorators-legacy' isn't currently enabled (5:1): (at systemjs-babel.js:7:164355)

How about adding @babel/plugin-proposal-decorators to the plugin list?

@guybedford
Copy link
Member

I'm open to adding that plugin if you would like to create a PR.

@vsDizzy
Copy link
Author

vsDizzy commented Oct 1, 2022

Umm, lets not do this.
I found that chrome supports import map, app works without SystemJS at all. 🙄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants