# @eggjs/development

> development tool for egg

Latest version **5.1.0** (published 2026-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @eggjs/development
pnpm add @eggjs/development
yarn add @eggjs/development
bun add @eggjs/development
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.1.0 |
| Published | 2026-10-07 |
| First published | 2025-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=22.18.0 |
| Dependencies | 3 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 18984 |
| Author | jtyjty99999 |
| Maintainers | gxkl, eggjs-admin, fengmk2, atian25, hyj1991, killagu, coolme200, akitasummer, elrrrrrrr, niania |
| Keywords | egg, egg-plugin, eggPlugin, plugin |

## Links

- npm: https://www.npmjs.com/package/@eggjs/development
- Repository: https://github.com/eggjs/egg
- Homepage: https://github.com/eggjs/egg/tree/next/plugins/development
- Issues: https://github.com/eggjs/egg/issues
- npm.io page: https://npm.io/package/@eggjs/development

## Dependencies (3)

- [utility](https://npm.io/package/utility.md) ^2.5.0
- [debounce](https://npm.io/package/debounce.md) ^3.0.0
- [multimatch](https://npm.io/package/multimatch.md) ^7.0.0

## Recent versions

- 5.1.0 (latest) — 2026-10-07
- 5.0.2-rc.1 (rc) — 2026-10-06
- 5.0.2-beta.27 (beta) — 2026-09-20
- 5.0.2 — 2026-10-06
- 5.0.2-rc.0 — 2026-09-23
- 5.0.2-beta.26 — 2026-08-07
- 5.0.2-beta.25 — 2026-07-13
- 5.0.2-beta.24 — 2026-07-12
- 5.0.2-beta.23 — 2026-07-11
- 5.0.2-beta.22 — 2026-07-11
- 5.0.2-beta.20 — 2026-07-09
- 5.0.2-beta.19 — 2026-06-29
- 5.0.2-beta.17 — 2026-06-28
- 5.0.2-beta.16 — 2026-06-26
- 5.0.2-beta.15 — 2026-06-26
- … 46 more at https://npm.io/package/@eggjs/development/versions

## README

# @eggjs/development

[![NPM version][npm-image]][npm-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]
[![Node.js Version](https://img.shields.io/node/v/@eggjs/development.svg?style=flat)](https://nodejs.org/en/download/)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)

[npm-image]: https://img.shields.io/npm/v/@eggjs/development.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@eggjs/development
[snyk-image]: https://snyk.io/test/npm/@eggjs/development/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/@eggjs/development
[download-image]: https://img.shields.io/npm/dm/@eggjs/development.svg?style=flat-square
[download-url]: https://npmjs.org/package/@eggjs/development

This is an egg plugin for local development, under development environment enabled by default, and closed under other environment.

`@eggjs/development` has been built-in for egg. It is enabled by default.

## Configuration

see [config/config.default.ts](https://github.com/eggjs/egg/blob/master/plugins/development/src/config/config.default.ts) for more detail.

## Features

- Under development environment, Output request log in STDOUT, statistic and output all key parts time-consuming;
- Watch file changes, and reload application；

### About Reload

Under the following directory (including subdirectories) will watch file changes under development environment by default, trigger an Egg development environment server reload:

- ${app_root}/app
- ${app_root}/config
- ${app_root}/mocks
- ${app_root}/mocks_proxy
- ${app_root}/app.js

> set `config.development.overrideDefault` to `true` to skip defaults merge.

Under the following directory (including subdirectories) will ignore file changes under development environment by default:

- ${app_root}/app/view
- ${app_root}/app/assets
- ${app_root}/app/public
- ${app_root}/app/web

> set `config.development.overrideIgnore` to `true` to skip defaults merge.

Developer can use `config.reloadPattern`([multimatch](https://github.com/sindresorhus/multimatch)) to control whether to reload.

```ts
// config/config.default.ts
export default = {
  development: {
    // don't reload when css fileChanged
    // https://github.com/sindresorhus/multimatch
    reloadPattern: ['**', '!**/*.css'],
  },
};
```

### Loader Trace

You can view loader trace for performance issue from `http://127.0.0.1:7001/__loader_trace__`

## Questions & Suggestions

Please open an issue [here](https://github.com/eggjs/egg/issues).

## License

[MIT](LICENSE)

## Contributors

[![Contributors](https://contrib.rocks/image?repo=eggjs/egg)](https://github.com/eggjs/egg/graphs/contributors)

Made with [contributors-img](https://contrib.rocks).

---
_Source: https://npm.io/package/@eggjs/development · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
