allow the use of double slash flow comments

This commit is contained in:
saadq
2018-03-21 18:07:16 -04:00
parent bed867f35b
commit fc45af02ae
3 changed files with 11 additions and 1 deletions

View File

@@ -11,7 +11,8 @@ var PREFIXES = [
'/** @babel */',
'"use babel"',
'\'use babel\'',
'/* @flow */'
'/* @flow */',
'// @flow'
]
var PREFIX_LENGTH = Math.max.apply(Math, PREFIXES.map(function (prefix) {