/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

putridparrot.com
| | krasimirtsonev.com

Transpile to ES modules with Babel / While I was working on Navigo an issue popped out. It was about using the library in the context of Web Dev Server where we have everything in TypeScript. And something was not ok with Navigo. The npm package wasn't exported properly and we were keep getting a does not provide an export named 'default' error. It turned out the problem is that Navigo is not exported properly as ES module (also known as ESM).
3.2 parsecs

Travel
| |
| | www.2ality.com

Rich Harris' module bundler Rollup popularized an important feature in the JavaScript world: tree-shaking, excluding unused exports from bundles. Rollup depends on the static structure of ES6 modules (imports and exports can't be changed at runtime) to detect which exports are unused. Tree-shaking for webpack is currently in beta. This blog post explains how it works. The project we are going to examine is on GitHub: tree-shaking-demo
2.9 parsecs

Travel
| |
| | www.typescriptlang.org

From allowJs to useDefineForClassFields the TSConfig reference includes information about all of the active compiler flags setting up a TypeScript project.
2.9 parsecs

Travel
| |
| | www.longdelayspossible.com

- Ernest Hemingway...
9.2 parsecs

Travel
|