# liady/webpack-node-externals

Easily exclude node modules in Webpack

Repository: https://github.com/liady/webpack-node-externals
Canonical: https://ross.abutalabs.com/products/webpack-node-externals
Language: JavaScript
License: MIT
License Family: permissive
Topics: webpack, node, external, modules, hacktoberfest
Last push: 2026-03-03T10:17:50+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 70, release rhythm 8, longevity 100
- inputs: {"age_days": 3871, "days_push": 183, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1294, forks 60 (observed 2026-08-28T04:04:16.332638+00:00)

## What it is
A small JavaScript library that generates a Webpack externals function to exclude node_modules dependencies from server-side bundles. It scans node_modules and tells Webpack to leave those modules as runtime require() calls instead of bundling them.

## Use cases
- exclude node_modules from webpack bundle
- bundle a node backend with webpack
- keep dependencies external when building for serverless
- prevent webpack from bundling node dependencies
- configure webpack externals for node target
- allowlist specific modules to bundle while excluding the rest

## When to choose
- You're bundling a Node.js backend or serverless function with Webpack and want dependencies left as require() calls
- You want a one-line externals configuration with allowlist support

## When to avoid
- You're bundling frontend code where dependencies should be included
- You use a bundler other than Webpack
- You want zero-config node externals in Webpack 5+ via built-in externalsPresets alone

## Facets
- artifact type: library
- maturity: active
- function: build-tool, developer-tools
- domain: developer-tools, backend, web-development
- platform: cli
- tags: webpack, node-modules, externals, bundler, serverless, nodejs

## Member repositories
- liady/webpack-node-externals (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.332638+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:05.434715+00:00, confidence not recorded.
  - readme: https://github.com/liady/webpack-node-externals (fetched 2026-08-28T04:04:16.332638+00:00, sha e3b0fc9476f5)
  - registry_npm: https://registry.npmjs.org/webpack-node-externals (fetched 2026-08-29T12:11:09.007063+00:00, sha 8ca429769bd8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
