# GoogleChromeLabs/webpack-libs-optimizations

Using a library in your webpack project? Here’s how to optimize it

Repository: https://github.com/GoogleChromeLabs/webpack-libs-optimizations
Canonical: https://ross.abutalabs.com/products/webpack-libs-optimizations
License: Apache-2.0
License Family: permissive
Topics: webpack, performance, frontend
Archived: true
Last push: 2022-11-12T19:25:48+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3148, "days_push": 1390, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3336, forks 110 (observed 2026-08-28T04:07:56.763195+00:00)

## What it is
A curated guide from Google Chrome Labs listing webpack optimization tips for popular JavaScript libraries like lodash, moment, and react. It shows how to reduce bundle sizes using techniques such as babel plugins and modular imports.

## Use cases
- reduce webpack bundle size when using lodash
- optimize moment.js imports in webpack
- make react bundle smaller with webpack
- tree-shake libraries that don't ship ES modules
- find webpack tips for popular npm libraries
- learn how to bundle only the parts of a library I use

## When to choose
- you use webpack and want smaller bundles for common libraries
- you're auditing why a JavaScript bundle is large
- you want canonical, Chrome-team-vetted optimization tips

## When to avoid
- you use bundlers other than webpack (tips are webpack-specific)
- you need a runnable tool rather than documentation
- you need up-to-date coverage of newer libraries (last updated 2022)

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: build-tool, developer-tools, documentation
- domain: web-development, frontend, performance, developer-tools, tutorials
- platform: -
- tags: webpack, bundle-size, tree-shaking, optimization-guide, javascript, nodejs, web-server

## Member repositories
- GoogleChromeLabs/webpack-libs-optimizations (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.763195+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-29T18:41:06.910884+00:00, confidence not recorded.
  - readme: https://github.com/GoogleChromeLabs/webpack-libs-optimizations (fetched 2026-08-28T04:07:56.763195+00:00, sha 29dab4d7c1be)
- Data as of 2026-08-30T08:39:29.467469+00:00.
