Rome detects imports that are only used in TS or Flow types and marks them when analyzing dependencies. These imports will not effect module order or be included in a bundle. Files that contain only types will never need to be included.
-
-
How does it handle re-exporting?
-
Exporting local values or `from`?
- 2 more replies
New conversation -
-
-
Metro does the same via a different implementation. If there are no references to a module left after transformation it won’t be included in the bundle.
-
What about `require('foo')`? Only seems appropriate when using inline requires. The functionality I described is basically automatically turning `import` into `import type` because TS doesn't support it.
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 