You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.
I'm trying out this package against an Ember Octane app. Looks like esbuild trips up on decorators with an error like error: Expected identifier but found "@"
Huh! Good question -- I honestly have no idea 😅 I don't know much about esbuild honestly. Since this package uses 0.8.X of esbuild I would assume that if it should work, it would...
There might be some kind of way to trick/force esbuild to process the JS files as TS files and then do whatever it needs to with decorators... but I'm not sure if there are other impacts that that would also have.
I was hoping that the esbuild-plugin-babel package mentioned here would be a resolution to this, but I'm not sure that's going to be the answer here. I tried to use it, only to realize that plugins are only support for the build API that it provides, not the transform API.
We might be able to take the same approach, though, just running the Babel plugin on the code and then passing it along to esbuild but without that plugin being involved.
I'm not sure how much that ends up making sense, because now we just have Babel involved again... 🤷♂️
I'm trying out this package against an Ember Octane app. Looks like esbuild trips up on decorators with an error like
error: Expected identifier but found "@"
The class definition itself looks like
I saw that esbuild added initial support for Typescript decorators in 0.4.10 but I'm guessing it doesn't perform the transformation for ES6 files?
The text was updated successfully, but these errors were encountered: