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 = {};
26
26
27
27
function getModuleInfo ( moduleId , parser ) {
28
28
if ( ! moduleInfos [ moduleId ] ) {
29
- const moduleInfo = moduleInfos [ moduleId ] = {
30
- namedExports : { }
31
- } ;
32
29
if ( ! fileNodes [ moduleId ] ) {
33
30
const absolutePath = path . join ( process . cwd ( ) , moduleRoot , moduleId + '.js' ) ;
34
31
if ( ! fs . existsSync ( absolutePath ) ) {
@@ -37,6 +34,9 @@ function getModuleInfo(moduleId, parser) {
37
34
const file = fs . readFileSync ( absolutePath , 'UTF-8' ) ;
38
35
fileNodes [ moduleId ] = parser . astBuilder . build ( file , absolutePath ) ;
39
36
}
37
+ const moduleInfo = moduleInfos [ moduleId ] = {
38
+ namedExports : { }
39
+ } ;
40
40
const node = fileNodes [ moduleId ] ;
41
41
if ( node . program && node . program . body ) {
42
42
const classDeclarations = { } ;
You can’t perform that action at this time.
0 commit comments