-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Description
When you export primitives in ESM, they are exposed as references which means they can be written to from elsewhere within the module. A reproduction of this behaviour can be seen in #113.
Because the iitm wrappers assign each export to a variable before re-exporting, primitive exports have their original value copied and the reference is lost.
This is where the code generation does that:
Lines 189 to 190 in 57d2459
| let $${n} = _.${n} | |
| export { $${n} as ${n} } |
Metadata
Metadata
Assignees
Labels
No labels