-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Support emitDecoratorMetadata
#347
Comments
We can't use the Build API because it would bypass Node.js' resolver, and add overhead writing/reading disk. To do what that plugin does, we don't technically need to use the Build API. We just need to re-implement the TypeScript transformation on the file when However, this will require TypeScript to be a dependency, and add a bottleneck to transformation, which defeats the point of using esbuild (and this entire module). Alternatively, we can consider leveraging SWC for this part but this should be investigated first. esbuild is not planning to support it. |
emitDecoratorMetadata
Is it possible to some how enable the tsc for this like https://github.com/thomaschaaf/esbuild-plugin-tsc ? |
This comment was marked as spam.
This comment was marked as spam.
1 similar comment
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'd like to reserve Issues for those interested in contributing, and discussions constructive towards addressing the issue (e.g. implementing fixes or features). Please discuss workarounds elsewhere. |
This is already answered above:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Is it that same thing as this issue? I've personally never used decorators so I'm not sure. As I understand, what shipped in terms of I published the esbuild v0.21 upgrade in |
some typescript and node framework (like nestjs) use
emitDecoratorMetadata
, but esbuild not support it, and @anatine/esbuild-decorators plugin can solve it .but esbuild's
transform
api not support plugin,some can change the api to usebuild
?like the follow code
The text was updated successfully, but these errors were encountered: