Is Coffeescript + ES6 Promise compatible with different browsers?

There is Meteor project with coffeescript@1.11.1_4 package. Now we use jquery implementation of Promise to chain some asyncronous operations on client

Can I use es6 Promise on a client with coffeescript and will it be compatible with different browsers? Does meteor transpile Promise to es5 code as it does with coffeescript?

If you have the ecmascript package installed, which you should, then yes Meteor polyfills promises: https://atmospherejs.com/meteor/ecmascript#polyfills

You can use both CoffeeScript and promises. As long as you have both the coffeescript and ecmascript packages installed, Meteor will take care of the rest.

1 Like