facebook / facebook/jscodeshift

File comment is lost when removing first statement

オープン
#44 コメント 8 件 リアクション 3 件 担当者 0 名 GitHub で見る
bug upstream
主要言語
JavaScript
スター
10k
フォーク
498
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。