-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--experimental-strip-types cannot import built in types: The requested module 'XXX' does not provide an export named 'YYY' #230
Comments
Apologies- this was in part my mistake. I think this does bring up an interesting question though: bundlers disregard things exported as a type and only used as a type. It's much harder for |
According to the spec, importing a specific named imports should not be observable IIUC (i.e.
FWIW, there's |
Thank you for the tips! |
It's is impossible to determine that reliably (because the binding could be re-exported). That's why typescript introduced isolatedModules very long ago :) |
Node Version:
v22.9.0
Command:
node --experimental-strip-types example.ts
When I import a built in type using
import type ...
everything seems OK. I wonder if-experimental-strip-types
needs to rewrite imports in some cases?The text was updated successfully, but these errors were encountered: