es6 deeper interpreted imports

Since es6 imports are static, is it possible for WebStorm to do a better job at resolving nested / deeper imports.  

A simple example of using three files import / exports:

 

fileA.js

export const CONST = 'CONST';

 

fileB.js

import * as myConst from './fileA';
export {myConst};

fileC.js

import {myConst} from './fileB';
console.log(myConst.CONST);

 

fileA shows the following error, however the variable CONST is being used

 

fileC shows the following error, however it should be able to resolve the myConst.CONST

Thank you.

 

3 comments

In addition if this resolution was better if would be able do a much better job of "Find Usages" and other smart features.

0

thank you, you can close this issue

0

Please sign in to leave a comment.