Skip to content

Commit e5c7071

Browse files
authored
Merge pull request #1 from matrix-org/jryans/remove-flow
Remove Flow support
2 parents 63f9119 + 4017228 commit e5c7071

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/gen-i18n.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
/*
4-
Copyright 2017 New Vector Ltd
4+
Copyright 2017-2021 The Matrix.org Foundation C.I.C.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -117,8 +117,8 @@ function getTranslationsJs(file) {
117117
];
118118

119119
if (file.endsWith(".js") || file.endsWith(".jsx")) {
120-
// all JS is assumed to be flow or react
121-
plugins.push("flow", "jsx");
120+
// All JS is assumed to be React
121+
plugins.push("jsx");
122122
} else if (file.endsWith(".ts")) {
123123
// TS can't use JSX unless it's a TSX file (otherwise angle casts fail)
124124
plugins.push("typescript");

0 commit comments

Comments
 (0)