-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Currently, given:
import { SOME_FLAG } from 'blah/features';
if (SOME_FLAG) {
console.log('whatever');
}With this config:
{
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...
Metadata
Metadata
Assignees
Labels
No labels