MCPcopy
hub / github.com/codesandbox/codesandbox-client / registerPlugins

Function registerPlugins

packages/app/static/js/babel.6.26.js:199–203  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 1

babel.6.26.jsFile · 0.85

Calls 1

registerPluginFunction · 0.85

Tested by

no test coverage detected