Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an option to disable a plugin in babel when using a preset?

I am using babel with babel-preset-es2015.

Is there a way to disable a specific plugin from within the 'package.json' configuration to avoid having to fork this preset just to remove one plugin?

like image 554
Lea Hayes Avatar asked Nov 14 '15 10:11

Lea Hayes


1 Answers

The Babel team is currently not interested in supporting presets that way:

Right now the intention of the preset is to allow people to use it without customization - if you want to modify it then you'll have to just define plugins yourself or make your own preset.

like image 84
max Avatar answered Sep 20 '22 19:09

max