ifdef-loader
Webpack loader that allows JavaScript or TypeScript conditional compilation (`#if ... #elif ... #else ... #endif`) directly from Webpack.
ifdef-loader@2.3.2 was published on 2021-11-12. Its manifest declares 1 runtime dependency and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. No Node.js engine requirement is declared in this manifest.
All ifdef-loader versions · Permanent reference to 2.3.2
Package specifications
| Version | 2.3.2 |
|---|---|
| License declaration | MIT |
| Published | 2021-11-12T16:44:59.710Z |
| Node.js requirement | Not declared |
| Type declarations | Not declared |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 28.92 KiB |
| Published file count | 8 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | ifdef-loader.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 5 |
| Repository stars | 297 |
| Repository forks | 31 |
Install ifdef-loader 2.3.2
npm install ifdef-loader@2.3.2 pnpm add ifdef-loader@2.3.2 yarn add ifdef-loader@2.3.2
Runtime dependencies
- loader-utils ^1.1.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- big.js@5.2.2 — indirect
- emojis-list@3.0.0 — indirect
- json5@1.0.2 — indirect
- loader-utils@1.4.2 — direct
- minimist@1.2.8 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 2/10 — Found 3/11 approved changesets -- score normalized to 2 |
|---|---|
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Security-Policy | 0/10 — security policy file not detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 0/10 — license file not detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/ifdef-loader/2.3.2 — retrieved 2026-10-29T12:44:08.246Z
- https://api.deps.dev/v3/systems/npm/packages/ifdef-loader/versions/2.3.2 — retrieved 2026-10-29T12:44:08.814Z
- https://api.deps.dev/v3/systems/npm/packages/ifdef-loader/versions/2.3.2:dependencies — retrieved 2026-10-29T12:44:08.826Z
- https://api.deps.dev/v3/projects/github.com%2Fnippur72%2Fifdef-loader — retrieved 2026-10-29T12:44:08.943Z