Javascript build tools
✓ Published2🌍 Public
This example illustrates the JavaScript build-tool ecosystem, mapping tools like npm, yarn, rollup, and webpack to their roles as package managers or module bundlers. It uses plain DOM elements and D3 v7’s `select` and `version` to display text, while the underlying code demonstrates module syntax with named and default exports. The visualization’s source files show how `index.js` imports from `something.js` and `thing.js`, and the HTML references a rollup-injected bundle, clarifying how bundlers assemble local packages into browser-ready scripts.
AI-generated descriptionJavascript and tooling from https://www.youtube.com/watch?v=xkBheRZTkaw starting at 6:55 - 8:04
- npm is company and package manager
- npm is commandline tool
- yarn is alternative for npm (package manager) using npm packages
- rollup is module bundler. Alternatives webpack / parcel
package manager repository tool
module manager uses local packages
Guidelines (un)named exports
- Default exports give other name to imports. This can be confusing.
- Best practice always use named exports.
MIT Licensed