diff --git a/lib/less/plugin-api.js b/lib/less/plugin-api.js index 214c36b0..8ef84f14 100644 --- a/lib/less/plugin-api.js +++ b/lib/less/plugin-api.js @@ -1,10 +1,15 @@ (function (root, registerPlugin) { -if (typeof define === 'function' && define.amd) { define([], registerPlugin); -} else if (typeof module === 'object' && module.exports) { module.exports = registerPlugin(); -} else { if (!root.less) { root.less = {}; } if (!root.less.plugins) { root.less.plugins = []; } -root.less.plugins.push(registerPlugin()); } } - -(this, function () { + if (typeof define === 'function' && define.amd) { + define([], registerPlugin); + } else if (typeof module === 'object' && module.exports) { + module.exports = registerPlugin(); + } else { + if (!root.less) { root.less = {}; } + if (!root.less.plugins) { root.less.plugins = []; } + root.less.plugins.push(registerPlugin()); + } +}(this, function () { + // Less.js Plugin object return { install: function(less, pluginManager, functions) { // functions.add('')