Migrate Babel from Flow to TypeScript (except Babel parser) (#11578)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@ export default declare(api => {
|
||||
Program(path) {
|
||||
const { node } = path;
|
||||
|
||||
for (const directive of (node.directives: Array<Object>)) {
|
||||
for (const directive of node.directives) {
|
||||
if (directive.value.value === "use strict") return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user