Possible to add an import handler for JavaScript in WebStorm/IntelliJ IDEA UE?
已回答
Is it possible to extend the JavaScript plugin for a custom ES6+ import handler/resolver? The development environment supported by my custom plugin has an upcoming enhancement that includes a set of import types. These import types don't necessarily strictly correspond to files, and in some cases where they do correspond to files, sometimes the resolution rules aren't obvious.
I'm hoping there's some type of extension point for the JavaScript language that will allow my plugin to resolve an imported resource to either the corresponding real file or to a synthetic file. Is this possible?
Thanks in advance for any leads!
请先登录再写评论。
Hello.
You may use "JavaScript.moduleReferenceContributor" extension point with com.intellij.lang.javascript.psi.resolve.JSModuleReferenceContributor interface. There is an example of such extension in Ember plugin.