Is there a way to transpile ES6 for Bitcore services?

(Patrick Walters) #1

I’m trying to write a service for Bitcore but I’d like to use ES6 module syntax and transpile it down to common.js. When I do this I keep getting issues because scaffold/start.js is specifically looking for the start and stop method on the prototype.

Given that bitcore only runs on node v4 from my understand which doesn’t support un-transpiled code, is there anyway to accomplish this?