From a7d48ff34caaf5b7fdef9980404113b3fa0251c2 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 29 Dec 2020 22:07:56 -0600 Subject: [PATCH] fix: use babel in coffeescript --- lib/grammars/coffeescript.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/grammars/coffeescript.coffee b/lib/grammars/coffeescript.coffee index d14be11e..3a4df3a3 100644 --- a/lib/grammars/coffeescript.coffee +++ b/lib/grammars/coffeescript.coffee @@ -4,9 +4,10 @@ path = require 'path' bin = path.join __dirname, '../..', 'node_modules', '.bin' coffee = path.join bin, 'coffee' babel = path.join bin, 'babel' +babelConfig = path.join __dirname, 'babel.config.js' args = ({filepath}) -> - cmd = "'#{coffee}' -p '#{filepath}'|'#{babel}' --filename '#{bin}'| node" + cmd = "'#{coffee}' -p '#{filepath}'|'#{babel}' --filename '#{bin} --config-file #{babelConfig}'| node" return GrammarUtils.formatArgs(cmd) exports.CoffeeScript =