Replace 'use babel' -> '@babel' in comment directive

This commit is contained in:
Max Brunsfeld
2015-08-20 11:25:38 -07:00
parent 973c2a6a18
commit 070f4000f0
4 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ let babelVersionDirectory = null
const defaultOptions = require('../static/babelrc.json')
exports.shouldCompile = function(sourceCode) {
return sourceCode.startsWith('/** use babel */') ||
return sourceCode.startsWith('/** @babel */') ||
sourceCode.startsWith('"use babel"') ||
sourceCode.startsWith("'use babel'")
}