guys. I have stuck on small problem with converting TypeScript into JavaScript.

I have this code

```
import { someMethod } from 'someModule'

function *someGeneratorFunction(object : someObject) {
    someMethod();
}

```

When I try to convert it into ES5, I got a problem: Generator functions don't support by ES5 standart. And `import` is converting into `require`

But when I convert this code into ES6, I got a problem with `import`. Bcoz' it is converting not to `require`. It stays like `import`.

But stable Node doesn't support `import` construction. What I can do in this situation?

Need I to use this scheme: TypeScript->ES6->ES5 (via Babel)? Or there is another method?