Tuesday 12 September 2017

Should I transpile a library with Babel or TypeScript?

A few people argue against transpiling Node code, which makes sense because you're 1. generating a new source code 2. Node already supports a lot of ES6/ES2017 stuff.However, if you're building a new library that should be used Node, what do you do? Do you write the library with plain Node and write TypeScript types on the DefinitelyTyped (or you don't write them at all)?What about if you aim to write a library that should be used for both Node and client based apps?

Submitted September 12, 2017 at 06:09PM by zurfyx

No comments:

Post a Comment