Skip to content

Commit

Permalink
Allow jsx and tsx as lang for script block in Vue SFCs (#6983)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossinek committed Oct 8, 2021
1 parent d2d4f1c commit ea0f4e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/transformers/vue/src/VueTransformer.js
Expand Up @@ -275,10 +275,16 @@ ${
case 'js':
type = 'js';
break;
case 'jsx':
type = 'jsx';
break;
case 'typescript':
case 'ts':
type = 'ts';
break;
case 'tsx':
type = 'tsx';
break;
case 'coffeescript':
case 'coffee':
type = 'coffee';
Expand Down

0 comments on commit ea0f4e4

Please sign in to comment.