js-kyle/mincer

Mincer less engine crashes on recent Less versions

Closed this issue · 1 comments

Mincer less engine throws an exception when it tries to add local functions to less context. That is because recent versions of Less compiler have changed the internal structures. It seems that the less.tree doesn't contain 'functions' field anymore.

An excerpt from engines/less_engine.js:

 _.forEach(locals, function(localFunc, localName) {
    less.tree.functions[localName] = function() {
      var extractedLessArguments = _.map(arguments, 'value');

      return new less.tree.Anonymous(localFunc.apply(undefined, extractedLessArguments));
    };
  });

Ah... this was a known issue already (#167)