File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ const fileNodes = {};
2626
2727function getModuleInfo ( moduleId , parser ) {
2828 if ( ! moduleInfos [ moduleId ] ) {
29- const moduleInfo = moduleInfos [ moduleId ] = {
30- namedExports : { }
31- } ;
3229 if ( ! fileNodes [ moduleId ] ) {
3330 const absolutePath = path . join ( process . cwd ( ) , moduleRoot , moduleId + '.js' ) ;
3431 if ( ! fs . existsSync ( absolutePath ) ) {
@@ -37,6 +34,9 @@ function getModuleInfo(moduleId, parser) {
3734 const file = fs . readFileSync ( absolutePath , 'UTF-8' ) ;
3835 fileNodes [ moduleId ] = parser . astBuilder . build ( file , absolutePath ) ;
3936 }
37+ const moduleInfo = moduleInfos [ moduleId ] = {
38+ namedExports : { }
39+ } ;
4040 const node = fileNodes [ moduleId ] ;
4141 if ( node . program && node . program . body ) {
4242 const classDeclarations = { } ;
You can’t perform that action at this time.
0 commit comments