Kaynağa Gözat

Allow wider Flow use

We (i.e. the jitsi-meet project) are using the haste module system on
Web as well, not only on React Native. Unfortunately, Flow does not
support .web.js by default. Override Flow's defaults to include .web.js
as well. Technically, we have .native.js as well so the choice of
.web.js may lead to errors. Practically though, it is a potential future
problem that we do not have at the time of this writing.

https://github.com/jitsi/jitsi-meet/pull/1397 will take advantage of the
wider Flow use. The PR in question is huge at the time of this writing.
In order to reduce it, I'm extracting changes not directly related to
React-ifying the Toolbar.
j8
Ilya Daynatovich 8 yıl önce
ebeveyn
işleme
8502ecc6d2
1 değiştirilmiş dosya ile 12 ekleme ve 0 silme
  1. 12
    0
      .flowconfig

+ 12
- 0
.flowconfig Dosyayı Görüntüle

@@ -49,5 +49,17 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
49 49
 
50 50
 unsafe.enable_getters_and_setters=true
51 51
 
52
+; We (i.e. the jitsi-meet project) are using the haste module system on Web as
53
+; well, not only on React Native. Unfortunately, Flow does not support .web.js
54
+; by default. Override Flow's defaults to include .web.js as well. Technically,
55
+; we have .native.js as well so the choice of .web.js may lead to errors.
56
+; Practically though, it is a potential future problem that we do not have at
57
+; the time of this writing.
58
+module.file_ext=.web.js
59
+; Flow's defaults:
60
+module.file_ext=.js
61
+module.file_ext=.jsx
62
+module.file_ext=.json
63
+
52 64
 [version]
53 65
 ^0.38.0

Loading…
İptal
Kaydet