ember-cli / ember-cli/babel-plugin-debug-macros
Strip import statement if all imports are removed.
- Lingua principale
- TypeScript
- Stelle
- 13
- Fork
- 13
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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...
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.