Peter Hurst

Results 15 comments of Peter Hurst

ES6 is fully supported in all major browsers and in node.js. Many of the language features I personally used to use CoffeeScript for are now supported natively in ES6 (arrow...

The usual strategy is to distribute the npm package with multiple ES5 transpiled versions of the library (different versions to target different module loaders; CommonJS, UMD, etc), as well as...

This sounds bad for SEO when doing server-side rendering. And of course, you definitely can't measure the text up front on the server.

"If it’s done via CSS, there isn’t any impact on SEO or SSR" - that's not true, major search engines can tell if text is hidden via CSS.

I was able to import an mjs file just by setting `"allowJs": true` in my compilerOptions in tsconfig