-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
three/addons alias #336
Comments
I think TypeScript will correctly perform the alias if we add the |
Did some testing, and this won't work until we add file extensions to imports, which is waiting on DefinitelyTyped to support imports with file extensions without having to add them to |
Describe the feature you'd like:
Since r144 (mrdoob/three.js#23406), three.js supports a
three/addons
alias that would currently redirect tothree/examples/jsm
.For instance, the following resolve to the same file:
Suggested implementation:
TypeScript doesn't recognize the above behavior since the alias is currently handled through
package.exports
and types only exist forexamples/jsm
on disk (this might be something to check in TypeScript upstream). We can implement this by copyingexamples/jsm
toaddons
at build-time if there's no easy way to alias as a library.You can work-around this in user-land with:
The text was updated successfully, but these errors were encountered: