Skip to content

Commit 45abef7

Browse files
committed
Handle 'JavaScript with JSX' grammar with node
1 parent b6a682c commit 45abef7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/grammars.coffee

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,14 @@ module.exports =
378378
command: "node"
379379
args: (context) -> [context.filepath]
380380

381+
'JavaScript with JSX':
382+
"Selection Based":
383+
command: "node"
384+
args: (context) -> ['-e', context.getCode()]
385+
"File Based":
386+
command: "node"
387+
args: (context) -> [context.filepath]
388+
381389
"JavaScript for Automation (JXA)":
382390
"Selection Based":
383391
command: "osascript"

0 commit comments

Comments
 (0)