feat: support decorators before or after export#5871
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install rollup/rollup#fix/5859Notice: Ensure you have installed the latest stable Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust. or load it into the REPL: |
Performance report
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5871 +/- ##
=======================================
Coverage 98.55% 98.55%
=======================================
Files 269 269
Lines 8584 8588 +4
Branches 1472 1472
=======================================
+ Hits 8460 8464 +4
Misses 92 92
Partials 32 32 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b8aec36 to
6c3dc3e
Compare
lukastaegert
left a comment
There was a problem hiding this comment.
This already looks quite good, but I think we need to also cover the case where there are both inside and outside decorators.
lukastaegert
left a comment
There was a problem hiding this comment.
Great work, this works really well now! I also noticed that we throw a readable error in case decorators appear on both positions, so I will merge this now.
|
This PR has been released as part of rollup@4.37.0. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
resolves #5859
Description
The resolution is based on this idea #5859 (comment)