Free email newsletter: “ES.next News

2017-01-20

Making transpiled ES modules more spec-compliant

In this blog post, you’ll learn:

  • How a proposed “spec mode” for Babel makes transpiled ES modules more spec-compliant. That will help with preparing for native ES modules.
  • How ES modules and CommonJS modules will interoperate on Node.js.
  • How far along ES module support is on browsers and Node.js.

2017-01-15

Communicating between Web Workers via MessageChannel

Occasionally, you want Web Workers to communicate with each other. Doing so is not obvious as most Web Worker examples are about communicating between the main thread and a Web Worker. There, one uses postMessage() to send messages directly to the Worker. Alas, that doesn’t work for communicating between two Workers, because you can’t pass references to Workers around.

2017-01-09

ES proposal: import() – dynamically importing ES modules

The ECMAScript proposal “import()” by Domenic Denicola is currently at stage 3. It enables dynamic loading of ECMAScript modules and is explained in this blog post.