Skip to content

Instantly share code, notes, and snippets.

View safizn's full-sized avatar
🏗️
Developing...

Safi safizn

🏗️
Developing...
View GitHub Profile
@safizn
safizn / How_Require_Extensions_Work.md
Created January 6, 2019 13:44 — forked from jamestalmage/How_Require_Extensions_Work.md
Breakdown of How Require Extensions Work

Why

Doing require extensions correctly is essential, because:

  1. Users should be able to install multiple extensions in succession, and have them work together.
  2. Coverage tools like nyc need it to reliably supply coverage information that takes into account sourcemaps from upstream transforms.
  3. Because non-standard, un-predictable behavior causes hard to solve bugs, and major headaches for project maintainers.

What is a require extension anyways?