facebook / facebook/jscodeshift
File comment is lost when removing first statement
Offen
bug
upstream
- Vorherrschende Sprache
- JavaScript
- Sterne
- 10k
- Forks
- 498
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
If you have
```
/**
* @providesModule Foo.react
*/
var React = require('React');
```
and remove the require statement, the docblock is lost. This causes build errors and I had to manually fix up a bunch of files with the last codemod I wrote to restore these.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.