Preserve exported values immediately upon declaration like "export const varA = 42;" #5339
Unanswered
olivierpascal
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This is not possible at the moment and would be rather difficult to implement on Rollup side. It is also problematic as variables need to be renamed quite often, and once that happens, you need to write the export separate anyway. The size advantages would also be negligible, especially if the output is also minified, and there is also no tangible performance advantage. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When building to esm, how to preserve exported value immediately upon declaration like
export const varA = 42;
, and to NOT systematically group exports toconst varA = 42; export { varA };
?Beta Was this translation helpful? Give feedback.
All reactions