feature flag loader module for webpack
npm i -D feat-flag-loader
PS: You need install babel's presets & plugins manually
rules: [
{
test: /\.jsx?$/,
use: [
{
loader: 'feat-flag-loader',
query: {
babelOptions: {
presets: ['react', 'es2015', 'stage-0'],
plugins: ['transform-decorators-legacy'],
},
rules,
},
},
],
}
]