moduloze icon indicating copy to clipboard operation
moduloze copied to clipboard

optimization (bug): multiple named exports are in separate ESM `export` statements

Open getify opened this issue 3 years ago • 0 comments

module.exports.x = 2;
module.exports.fn = fn;

currently becomes:

export { 2 as x };
export { fn };

but should be:

export { 2 as x, fn };

getify avatar Feb 02 '22 17:02 getify