Open DrSensor opened 1 year ago
Can't do it with esbuild?
@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.
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 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!
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.