Skip to content

Commit

Permalink
small typescript fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FogelAI committed Jan 24, 2024
1 parent 333d333 commit 4ab7678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-transform-barrels",
"version": "1.0.10",
"version": "1.0.11",
"description": "This Babel plugin transforms indirect imports through a barrel file (index.js) into direct imports.",
"homepage": "https://github.com/FogelAI/babel-plugin-transform-barrels",
"main": "src/barrel.js",
Expand Down
2 changes: 1 addition & 1 deletion src/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AST {
static filenameToAST = (filename) => {
try {
const content = fs.readFileSync(filename, "utf-8");
return parser.parse(content, { sourceType: "module", plugins:["jsx"] });
return parser.parse(content, { sourceType: "module", plugins:["jsx", "typescript"] });
} catch (error) {
return null;
}
Expand Down

0 comments on commit 4ab7678

Please sign in to comment.