ember-cli / ember-cli/babel-plugin-debug-macros
Strip import statement if all imports are removed.
オープン
- 主要言語
- TypeScript
- スター
- 13
- フォーク
- 13
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Currently, given:
```js
import { SOME_FLAG } from 'blah/features';
if (SOME_FLAG) {
console.log('whatever');
}
```
With this config:
```js
{
plugins: [
['babel-debug-macros', {
features: {
name: 'blah',
source: 'blah/features',
flags: { SOME_FLAG: true }
},
}]
]
}
```
We remove the usage of `SOME_FLAG`, but leave the import statement. This forces us to also emit a `blah/features` module even if we never have runtime enableable features.
IMO, we should remove imports if they are no longer used...
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。