JavaScript theorytheory 0/50 · 0%
Tooling · medium

49. Tooling: bundlers, linters, types

The build pipeline around your code.

A bundler (Vite, esbuild) resolves modules, transpiles and tree-shakes. ESLint catches likely mistakes, Prettier removes formatting debate, and even in plain JavaScript, JSDoc types give editor checking.

/** @param {bigint} wei @returns {string} */
export function format(wei) { /* ... */ }

Run lint and tests in CI so a broken build never reaches a deploy.

Check your understanding

  1. 1. What is tree shaking?

  2. 2. What does JSDoc give plain JavaScript?

  3. 3. Why run checks in CI?