fix: add decorator plugin to ast parser

This commit is contained in:
Bogdan Lyashenko
2019-03-30 20:07:15 +01:00
parent b978a7f64e
commit c54a1b7abc
3 changed files with 5 additions and 3 deletions

View File

@@ -27,7 +27,9 @@ const config = {
'objectRestSpread',
'optionalCatchBinding',
'optionalChaining',
'throwExpressions'
'throwExpressions',
'decorators-legacy',
'decorators'
]
};

View File

@@ -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;
}
};