mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
fix(es/helpers): Do not duplicate property names (#7266)
**Related issue:** - Closes #7264.
This commit is contained in:
parent
cfc53fe0df
commit
30a4e52f74
@ -67,10 +67,12 @@ modules.forEach((p) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
indexCJS.push(
|
indexCJS.push(
|
||||||
`module.exports = {`,
|
`0 && (module.exports = {`,
|
||||||
"/* @Annotate start: the CommonJS named exports for ESM import in node */",
|
"/* @Annotate_start: the CommonJS named exports for ESM import in node */",
|
||||||
...cjs_module_lexer,
|
...cjs_module_lexer,
|
||||||
"/* @Annotate end */",
|
"/* @Annotate_end */",
|
||||||
|
`});`,
|
||||||
|
`module.exports = {`,
|
||||||
...cjs_export_list,
|
...cjs_export_list,
|
||||||
`};`,
|
`};`,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user