Skip to content

Commit 586090f

Browse files
committed
Fix potential path to babel issue
Fix potential issue when the ATOM_HOME path contains spaces.
1 parent a4b4d51 commit 586090f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grammars/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import GrammarUtils from '../grammar-utils';
55

66
const babel = path.join(__dirname, '../..', 'node_modules', '.bin', 'babel');
77

8-
const args = ({ filepath }) => ['-c', `${babel} --filename '${babel}' < '${filepath}'| node`];
8+
const args = ({ filepath }) => ['-c', `'${babel}' --filename '${babel}' < '${filepath}'| node`];
99

1010
exports.Dart = {
1111
'Selection Based': {

0 commit comments

Comments
 (0)