fix: use the original class name in the class body#4827
fix: use the original class name in the class body#4827lukastaegert merged 7 commits intorollup:masterfrom
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-classor load it into the REPL: |
|
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
Variablerenders a proper name according to the return of theuseOriginalNamefunction.