Skip to content

Commit

Permalink
fix!: Only load sucrase tsx hook for .tsx extension
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Apr 7, 2022
1 parent 8e6d139 commit e9376a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ var extensions = {
],
'.tsx': [
'ts-node/register',
'sucrase/register',
'sucrase/register/tsx',
{
module: '@babel/register',
register: function (hook) {
Expand Down

0 comments on commit e9376a1

Please sign in to comment.