Fix plugin api typo when an object is passed in

This commit is contained in:
Jason Quense
2015-05-08 17:25:14 -04:00
parent a5cda5caa7
commit 6b9686f2dd

View File

@@ -68,7 +68,7 @@ export default class PluginManager {
if (name) {
if (typeof name === "object" && name.transformer) {
({ plugin: name, position } = name);
({ transformer: plugin, position } = name);
} else if (typeof name !== "string") {
// not a string so we'll just assume that it's a direct Transformer instance, if not then
// the checks later on will complain