-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: use the original class name in the class body #4827
Conversation
✅ Deploy Preview for rollupjs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
72d77a6
to
99d8310
Compare
Codecov Report
@@ Coverage Diff @@
## master #4827 +/- ##
=======================================
Coverage 99.00% 99.00%
=======================================
Files 219 219
Lines 7834 7835 +1
Branches 2168 2168
=======================================
+ Hits 7756 7757 +1
Misses 26 26
Partials 52 52
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Thank you for your contribution! ❤️You can try out this pull request locally by installing Rollup via npm install TrickyPi/rollup#fix/static-block-class or load it into the REPL: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
For the failing tests, note that you can add a parameter module.exports = {
description: 'use class name instead of renderName in static block',
minNodeVersion: 16
}; |
Ok, Thanks! |
c24c02a
to
f8d67fc
Compare
* fix: add useOriginalName option * test: add test * test: remove solo * test: set minNodeVersion * refactor: override useOriginalName in ClassDeclaration * test: add more cases * test: tweak description
This PR has been released as part of rollup@3.12.1. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
resolves #4811
Description
The
Variable
renders a proper name according to the return of theuseOriginalName
function.