Merge pull request #1483 from jquense/patch-1

Fix plugin api typo when an object is passed in
This commit is contained in:
Sebastian McKenzie 2015-05-08 22:26:45 +01:00
commit f8b8723bef

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