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
Dynamic imports of the signature import("./components.ts").then(({ Apple }) => Apple); are reported as unused exports while dynamic imports of the signature import("./components.ts").then((mod) => mod.Orange); are not reported as unused exports.
As illustrated in the reproduction, I have a components.ts file that is:
I've created a simple reproduction at https://github.com/shawnmcknight/knip-dynamic-import-destructuring.
Dynamic imports of the signature
import("./components.ts").then(({ Apple }) => Apple);
are reported as unused exports while dynamic imports of the signatureimport("./components.ts").then((mod) => mod.Orange);
are not reported as unused exports.As illustrated in the reproduction, I have a
components.ts
file that is:and an
index.ts
file that is:When running knip the output is:
Please let me know if there is anything else I can provide to assist!
The text was updated successfully, but these errors were encountered: