feat(transformer): support for transforming legacy decorator#8614
Merged
graphite-app[bot] merged 1 commit intomainfrom Feb 9, 2025
Merged
Conversation
Member
Author
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Member
|
Can you make space for ecma decorators? i.e. name current decorator as |
CodSpeed Performance ReportMerging #8614 will not alter performanceComparing Summary
|
Boshen
reviewed
Jan 22, 2025
386e3d6 to
115bbda
Compare
This was referenced Jan 22, 2025
e2bb198 to
b73f8a8
Compare
97e7f9c to
4ac37a4
Compare
b73f8a8 to
f0ed208
Compare
4ac37a4 to
318f4bc
Compare
f0ed208 to
d287a61
Compare
318f4bc to
69ed340
Compare
9efa0dc to
e37cb67
Compare
d287a61 to
233dc07
Compare
e37cb67 to
013ddd8
Compare
1104e05 to
ae9612b
Compare
ae9612b to
99f6608
Compare
Member
Author
Merge activity
|
related: #4047 related: rolldown/rolldown#2296 This is also known as "Experimental Decorator" in `TypeScript` by [experimentalDecorators](https://www.typescriptlang.org/tsconfig/#experimentalDecorators) enabling. ### Testing - Six tests fail due to [emitDecoratorMetadata](https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata), as we haven't supported it yet. I found `esbuild` doesn't support it as well. - A few tests fail due to different unique binding generator - ...
85b6679 to
f2d28f3
Compare
Dunqing
added a commit
that referenced
this pull request
Feb 10, 2025
…ript` (#8692) Part of #8614 All tests copy over from https://github.com/microsoft/TypeScript/blob/8da951cbb629b648753454872df4e1754982aef1/tests/cases/conformance/decorators/class, in addition, several multi-file tests were also adjusted. The output is generated by ```ts transpileModule( source, { compilerOptions: { target: 'esnext', experimentalDecorators: true, noEmitHelpers: true }, } ) ``` and replace all `__decorate` with `babelHelpers.decorate` and `__param` with `babelHelpers.decorateParam`
Dunqing
added a commit
that referenced
this pull request
Feb 10, 2025
related: #4047 related: rolldown/rolldown#2296 This is also known as "Experimental Decorator" in `TypeScript` by [experimentalDecorators](https://www.typescriptlang.org/tsconfig/#experimentalDecorators) enabling. ### Testing - Six tests fail due to [emitDecoratorMetadata](https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata), as we haven't supported it yet. I found `esbuild` doesn't support it as well. - A few tests fail due to different unique binding generator - ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

related: #4047
related: rolldown/rolldown#2296
This is also known as "Experimental Decorator" in
TypeScriptby experimentalDecorators enabling.Testing
esbuilddoesn't support it as well.