strict-import | searching upwards for required modules | Runtime Evironment library
kandi X-RAY | strict-import Summary
kandi X-RAY | strict-import Summary
Prevent `require` from searching upwards for required modules
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of strict-import
strict-import Key Features
strict-import Examples and Code Snippets
Community Discussions
Trending Discussions on strict-import
QUESTION
at work I'm forced to use flow type, it is however extremely slow, here is a video demonstrating the issue:
https://www.youtube.com/watch?v=hloQX8wG0t0
I already tried several things, such as deleting flow-typed definitions, getting rid of circular dependencies, etc...
At this point I'm out of ideas, I also don't know how to debug the thing, does anyone have an idea how to see the dependency tree that is generated after saving/each keystroke?
Edit 1:
Here is my current .flowconfig
:
ANSWER
Answered 2021-Aug-25 at 07:44I ended up parsing the entire app's dependency tree to figure out if something was really wrong... came to the conclusion that flow is doing nothing wrong, but our imports are to blame, mostly (I think) due to Redux and Sagas, pulling one import end-ups re-checking the entire app.
You can find my how I figured it out here:
https://ospfranco.com/post/2021/08/25/how-to-visualize-flowtype-dependency-tree/
QUESTION
On our application we are using flow for typechecking, which is all good and fine, however there seems to be a very large amount of dependencies that need to be checked on each incremental pass of the type checker, a single change on a very leaf component generates the following output:
...ANSWER
Answered 2020-Nov-28 at 02:55You should try upgrading Flow to v0.133 and switch to the Types-First architecture, or enable it on earlier releases. The rechecks have considerably improved, as explained, since all module exports are now annotated instead of being infered. There is a codemod availble for annotating exports on large codebases:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install strict-import
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page