ef4 / decorator-transforms

Better babel transforms for decorators
8 stars 5 forks source link

browser support? #21

Open NullVoxPopuli opened 7 months ago

NullVoxPopuli commented 7 months ago

Related to: https://github.com/ef4/decorator-transforms/issues/20

Importing from node:* modules isn't allowed in the browser. (sure, one could polyfill it, but.. why?).

This is how I'm trying to use decorator-transforms: https://github.com/NullVoxPopuli/limber/pull/1675

(the goal being to eventually drop @babel/standalone (which is separate from using decorator-transforms, but... the reason to use decorator-transforms is a no-brainer: https://github.com/NullVoxPopuli/limber/issues/1671), and use the core @babel/* libraries directly to save on MB -- since @babel/standalone includes all plugins... which is a lot)