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

Babel plugin #270

Open
DrSensor opened this issue Sep 28, 2022 · 6 comments
Open

Babel plugin #270

DrSensor opened this issue Sep 28, 2022 · 6 comments

Comments

@DrSensor
Copy link

Since Lume has PostCSS plugin, I think it's reasonable to have Babel plugin as well. In my case, I need it to support stage 3 decorator.

@oscarotero
Copy link
Member

Can't do it with esbuild?

@DrSensor
Copy link
Author

Nope evanw/esbuild#104 (comment)

@binyamin
Copy link
Contributor

@oscarotero I think this is a great opportunity for a community plugin. Adding a babel plugin would mean maintaining it, along with the other 37 plugins (8 internal). The esbuild plugin covers most use-cases.

@oscarotero
Copy link
Member

I'm testing the NPM support added to Deno in the latests versions and seems to work fine (althougth there are some issues related with dynamic imports and the types are not implemented yet). For example: https://github.com/lumeland/lume/blob/master/deps/remark.ts

So using Babel in Deno (and Lume) should be something feasible. If anyone want to work on this plugin (as a community plugin, not included in the Lume repo), I'm ok with that.

@DrSensor
Copy link
Author

DrSensor commented Oct 5, 2022

@oscarotero
Copy link
Member

@DrSensor That's great, I think it can be improved but it's a good start!
When I have some time, I'll suggest some changes.
Thanks!

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

No branches or pull requests

3 participants