brigand / brigand/babel-plugin-flow-react-proptypes

Perform escape analysis on imported types

Open
#206 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
427
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Reference: [react-virtualized issue](https://github.com/bvaughn/react-virtualized/issues/1212)

This import appears in a [source file] which doesn't define components or composite types.

```js
import type WindowScroller from '../WindowScroller.js';
```

This line is in the output:

```
import { bpfrpt_proptype_WindowScroller } from '../WindowScroller.js';
```

As `bpfrpt_proptype_WindowScroller` is never referred to, the binding and import can be cleaned up.

[source file]: https://github.com/bvaughn/react-virtualized/blob/6faafb5c4398e502c568db73fc430e56e8434e81/source/WindowScroller/utils/onScroll.js

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.