# @lwc/features

> LWC Features Flags

Latest version **9.4.3** (published 2026-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lwc/features
pnpm add @lwc/features
yarn add @lwc/features
bun add @lwc/features
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 9.4.3 |
| Published | 2026-09-02 |
| First published | 2019-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16.6.0 |
| Dependencies | 1 |
| Unpacked size | 27 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1790 |
| Maintainers | lwc-admin, caridy, jye-sf, ravi.jayaramappa, jodarove, abdulsattar, rax-it1, lpomerleau |
| Keywords | lwc |

## Links

- npm: https://www.npmjs.com/package/@lwc/features
- Repository: https://github.com/salesforce/lwc
- Homepage: https://lwc.dev
- Issues: https://github.com/salesforce/lwc/issues
- npm.io page: https://npm.io/package/@lwc/features

## Dependencies (1)

- [@lwc/shared](https://npm.io/package/@lwc/shared.md) 9.4.3

## Recent versions

- 9.4.3 (latest) — 2026-09-02
- 9.4.6-alpha.1 (canary) — 2026-09-22
- 9.3.10 (winter27) — 2026-09-21
- 9.1.5 (summer26) — 2026-04-28
- 8.25.1 (spring26) — 2025-11-19
- 8.20.6 (winter26) — 2025-10-20
- 8.16.5 (summer25) — 2025-05-05
- 8.10.3 (spring25) — 2025-01-09
- 7.1.5 (winter25) — 2024-10-10
- 7.0.1-alpha.0 (next) — 2024-06-21
- 6.4.5 (summer24) — 2024-06-05
- 5.0.10 (spring24) — 2024-03-20
- 3.0.4 (winter24) — 2023-10-02
- 2.40.2-lbc (lbc-avante-garde) — 2023-03-21
- 2.31.8 (spring23) — 2023-03-20
- … 675 more at https://npm.io/package/@lwc/features/versions

## README

# @lwc/features

Runtime flags can be enabled or disabled by setting a boolean value for that
flag in `globalThis.lwcRuntimeFlags`, e.g.:

```js
lwcRuntimeFlags.ENABLE_SOME_FEATURE = true;
```

If the flag is not explicitly
set, the feature is disabled by default. The `lwcRuntimeFlags` object
must appear before the engine is initialized and should be defined at the
application layer.

Internally, LWC will reference runtime flags like so:

```js
if (lwcRuntimeFlags.ENABLE_SOME_FEATURE) {
    // etc.
}
```

This makes it possible for consumers to replace these flags at compile time, using something like [Rollup's `@rollup/plugin-replace`](https://www.npmjs.com/package/@rollup/plugin-replace) or [ESBuild's `define`](https://esbuild.github.io/api/#define).

Note that `@lwc/features` is an internal package used by LWC and (most likely) should not be directly used by consumers.

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