You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a module has multiple exports with the same name, these do not get exported. However, if duplicate named exports come from the same source file, it should be retained.
A simple example: a.mjs
exportconstval=1;
b.mjs
export*from'./a.mjs';
c.mjs
export*from'./a.mjs';export*from'./b.mjs';
When run in Node, c.mjs has a single export named val.
When running through import-in-the-middle there is no export.
This issues currently affects for the following libraries:
svelte
drizzle-orm
Using these libraries when they have been wrapped by import-in-the-middle results in errors like:
ReferenceError: X is not defined
The requested module 'M' does not provide an export named 'X'
The text was updated successfully, but these errors were encountered:
If a module has multiple exports with the same name, these do not get exported. However, if duplicate named exports come from the same source file, it should be retained.
A simple example:
a.mjs
b.mjs
c.mjs
When run in Node,
c.mjs
has a single export namedval
.When running through
import-in-the-middle
there is no export.This issues currently affects for the following libraries:
svelte
drizzle-orm
Using these libraries when they have been wrapped by
import-in-the-middle
results in errors like:ReferenceError: X is not defined
The requested module 'M' does not provide an export named 'X'
The text was updated successfully, but these errors were encountered: