Skip to content

mixed default and named exports not working in cjs and umd #264

@FezVrasta

Description

@FezVrasta
const a=1, b=2, c=3, d=4;
export { a, b, c};
export default d;

if you try to bundle this, the result is:

module.exports=4;
//# sourceMappingURL=test3.js.map

I'd expect:

module.exports.a=1;
module.exports.b=2;
module.exports.c=3;
module.exports.default=4;
//# sourceMappingURL=test3.js.map

it exports everything only on the esm build.

Is there any flag to turn on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions