Writing a plugin

A plugin puts your own code inside an esdev build: it can invent a module, rewrite one that exists, or tell the watcher about a file the graph cannot discover. Project plugins are declared in esdev.json; programmatic builds pass them to build().

Read only the part you need

Plugins run in the build process and are esdev-only. The detailed guide is split by the decisions you make while writing one.

Plugin guide

See also the runtime:build API and the hot-reload plugin guide.

Last updated on
Edit this page