Tutorial: publishing ESM-based npm packages with TypeScript
A guide to publishing npm packages using TypeScript and native ECMAScript Modules (ESM), covering setup, configuration, and best practices.
A guide to publishing npm packages using TypeScript and native ECMAScript Modules (ESM), covering setup, configuration, and best practices.
A guide to importing frontend JavaScript libraries without using a build system, covering ES Modules, classic scripts, and CommonJS.
Explores a conceptual approach to transforming CommonJS modules into ES Modules by treating each CJS file as a 'builder' function.
A Redux maintainer shares painful lessons learned migrating packages to ES Modules, covering build tools, configurations, and compatibility issues.
Explains JavaScript Import Maps for ASP.NET Core devs, comparing traditional scripts to ES modules for better dependency management.
Explains how to use the import.meta object in JavaScript ES modules to access metadata like the module's URL in browsers and file path in Node.js.
A developer's journey of yak shaving leads to creating <md-block>, a new HTML web component for rendering Markdown content.
A solution for getting __dirname in both ESM and CommonJS modules, useful for TypeScript projects targeting both formats.
Explains how to use dynamic import() in ES2020 JavaScript to load modules asynchronously, including named and default exports.
A guide to enabling and using ES Modules (import/export) in Node.js, covering .mjs files, package.json configuration, and module imports.
A talk introducing Vite, a fast next-generation development tool, explaining its speed advantages over bundlers like Webpack and Create React App.
Explores function overloading in JavaScript libraries, using Bliss.js as an example to show how it improves API design and developer experience.
Introducing Parsel, a tiny, permissive CSS selector parser with AST walking and specificity calculation methods.
Explains how to import non-ESM JavaScript libraries (globals, CommonJS) into ES Modules for client-side use, with practical examples.
A guide to setting up a Vite project with Preact and TypeScript, including configuration steps and setup tips.
A usability expert critiques the poor Developer Experience (DX) of modern JavaScript, highlighting common module import errors and tooling frustrations.
The article argues for writing pure JavaScript modules that export functions to improve performance, debuggability, and tree-shaking.