How to get meteor 1.2 (in ES2015) to transpile collections code


#1

I want the transpiled code to look like the documentation, e.g.,

Meteor.users.deny({ 
      update: function () { 
        return true; 
      } 
    })

When I transpile the original JS, it turns the anonymous function into a named function

Meteor.users.deny({
  update: function update() {
    return true;
  }
});

Is this an issue? If so, how to work around?


#2

It’s not an issue at all - why does it matter what the transpired code looks like?


#3

Many thanks.

When the transpiled code looked different from the meteor docs about collections,
I thought my ES2015 might be malformed or incorrect