fix: add decorator plugin to ast parser
This commit is contained in:
@@ -27,7 +27,9 @@ const config = {
|
||||
'objectRestSpread',
|
||||
'optionalCatchBinding',
|
||||
'optionalChaining',
|
||||
'throwExpressions'
|
||||
'throwExpressions',
|
||||
'decorators-legacy',
|
||||
'decorators'
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ const getImports = (fileCode, itemPath) => {
|
||||
|
||||
return importedDependencies.filter(({ sourceFile }) => !!sourceFile);
|
||||
} catch (e) {
|
||||
console.log(itemPath, e);
|
||||
console.log('Dependencies: getImports', itemPath, e);
|
||||
return importedDependencies;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user