Make a JS function to be considered "used" without adding a reference to anything?
已回答
Can I force the default export of a JS file to be considered "used" without actually adding a reference to anything?
I want my references to always point to the containing PsiFile, but if the file is referenced from my PageReference then the default export is definitely used.
I want to avoid having both the file, and the default export showing up as declarations when I Ctrl+Click on the usage
请先登录再写评论。
See EP com.intellij.codeInsight.daemon.ImplicitUsageProvider