You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This is an extremely common pattern used in cjs modules. rollup-plugin-commonjs currently creates suboptimal code for that, see the example from zloirock/core-js#125 (comment):
If rollup-plugin-commonjs were a little bit smarter, it could avoid allocating the unused exports var/object in that case.
It it were even smarter, it may also be possible to avoid the modules map too, but I guess that would depend on the importer side, so it might not be feasible.
This is an extremely common pattern used in cjs modules. rollup-plugin-commonjs currently creates suboptimal code for that, see the example from zloirock/core-js#125 (comment):
If rollup-plugin-commonjs were a little bit smarter, it could avoid allocating the unused
exportsvar/object in that case.It it were even smarter, it may also be possible to avoid the
modulesmap too, but I guess that would depend on the importer side, so it might not be feasible.