-
Notifications
You must be signed in to change notification settings - Fork 122
TypeScript implement custom resolver #262
Comments
@guybedford sure. Currently we plan to expose custom resolution via CompilerHost.resolveModuleName so host can implement any resolution policy it needs. Can you please tell if it will cover your scenarios? |
@vladima thanks yes that looks exactly right. In SystemJS we can always relate every module to an absolute URL or filepath, but it may be worth considering relaxing this constraint and allowing virtual naming as well. For example, we use the |
@guybedford this PR on the TypeScript side should allow to pass map (originalName -> newName, effectively |
It works excellently, thanks @vladima for your work on this. |
Released in 0.13.2. |
To ensure that bundle dependencies are normalized correctly, it is necessary to have a custom resolver to pass into TypeScript.
@vladima you mentioned previously this was the plan for custom resolutions? Please keep me posted on how that goes.
The text was updated successfully, but these errors were encountered: