5 ms·
You don't have to use the hottest new framework or language feature. The JavaScript you're writing now will still be supported while the language evolves and im
by sim0n 9y ago
You don't have to use the hottest new framework or language feature. The JavaScript you're writing now will still be supported while the language evolves and improves.
- kuschku 9y agoNice idea, but false. Your code depends on libraries and frameworks, which constantly change and adapt to the the mood of the time.
- tlrobinson 9y agoSo transpile the library. Webpack and others can do it.
- zmmmmm 9y agoIf it was just about transpiling, that would be fine. The problem is that some frameworks (eg: React) add on a whole lot more assumptions about how how your app works. Just look at the plethora of blog posts, tutorials and even whole mini-frameworks just to get d3 to work with React.
- octalmage 9y agoMany libraries that use ES6 features distribute the transpiled version through npm or GitHub. If they don't, you can just transpile the library using Webpack then use that. Or you could use codemods to update your code base in an automated way. See: https://github.com/cpojer/js-codemod https://github.com/cpojer/js-codemod