* Registers multiple plugins for use with Babel. `newPlugins` should be an object where the key * is the name of the plugin, and the value is the plugin itself.
(newPlugins)
| 197 | * is the name of the plugin, and the value is the plugin itself. |
| 198 | */ |
| 199 | function registerPlugins(newPlugins) { |
| 200 | Object.keys(newPlugins).forEach(function (name) { |
| 201 | return registerPlugin(name, newPlugins[name]); |
| 202 | }); |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Registers a named preset for use with Babel. |
no test coverage detected