facebook / facebook/jscodeshift

File comment is lost when removing first statement

Offen
#44 8 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
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

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.