mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 02:06:08 +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(
|
||||
`module.exports = {`,
|
||||
"/* @Annotate start: the CommonJS named exports for ESM import in node */",
|
||||
`0 && (module.exports = {`,
|
||||
"/* @Annotate_start: the CommonJS named exports for ESM import in node */",
|
||||
...cjs_module_lexer,
|
||||
"/* @Annotate end */",
|
||||
"/* @Annotate_end */",
|
||||
`});`,
|
||||
`module.exports = {`,
|
||||
...cjs_export_list,
|
||||
`};`,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user