facebook / facebook/jscodeshift

File comment is lost when removing first statement

Aperta
#44 8 commenti 3 reazioni 0 assegnatari Vedi su GitHub
bug upstream
Lingua principale
JavaScript
Stelle
10k
Fork
498
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.