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

1 comment
Comment actions Permalink

See EP com.intellij.codeInsight.daemon.ImplicitUsageProvider


Please sign in to leave a comment.