mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Replace 'use babel' -> '@babel' in comment directive
This commit is contained in:
@@ -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'")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user