canirequire

canirequireESM-only › webpack-manifest-plugin

Is webpack-manifest-plugin ESM-only? Can you require() it?

A Webpack Plugin for generating Asset Manifests

Last verified Sep 9, 2026 against webpack-manifest-plugin@6.0.1. JSON

ESM-only ESM-only since 6.0.0 — last CommonJS version is 5.0.1

webpack-manifest-plugin dropped its CommonJS build in 6.0.0 (October 2025). The last version you can require() on every Node.js version, including 18 and older, is 5.0.1, published Mar 11, 2025.

On Node.js 20.19+, 22.12+ and every newer release, require("webpack-manifest-plugin") works anyway: Node can load synchronous ES modules through require(). Verified on Node 20, 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM.

webpack-manifest-plugin@6.0.1 declares engines ">=20.19.0", so Node.js 18 is outside its supported range regardless of module format.

Latest
6.0.1 (Nov 2, 2025)
Module format
ESM-only
Last CommonJS version
5.0.1
ESM-only since
6.0.0 (Oct 30, 2025)
TypeScript types
Bundled
Node engines
>=20.19.0
Weekly downloads
3.4M
License
MIT

Does webpack-manifest-plugin@6.0.1 actually load? Runtime test results

Installed and executed on Sep 9, 2026 with require("webpack-manifest-plugin") from a CommonJS file and import "webpack-manifest-plugin" from an ES module.

Runtimerequire("webpack-manifest-plugin")import "webpack-manifest-plugin"
Node.js 18✗ failsERR_REQUIRE_ESM✓ works
Node.js 20✓ works✓ works
Node.js 22✓ works✓ works
Node.js 24✓ works✓ works
Node.js 26✓ works✓ works
Bun 1.4✓ works✓ works

How to import webpack-manifest-plugin

ES modules (import)

import webpackManifestPlugin from "webpack-manifest-plugin";

CommonJS (require)

// Node.js 20.19+ / 22.12+ / newer (package has no top-level await):
const webpackManifestPlugin = require("webpack-manifest-plugin");

// Any Node.js version:
const webpackManifestPlugin = await import("webpack-manifest-plugin");

// Or pin the last CommonJS release:
// npm install webpack-manifest-plugin@5.0.1

Module format by version

Derived from the type, main and exports fields of every stable release on npm (38 versions; the newest 38 shown).

VersionsFormatFirst published
6.0.0 – 6.0.1ESM-onlyOct 30, 2025
0.0.1 – 5.0.1CommonJSMay 6, 2015

Frequently asked

Is webpack-manifest-plugin ESM-only?

webpack-manifest-plugin@6.0.1 is ESM-only. webpack-manifest-plugin dropped its CommonJS build in 6.0.0 (October 2025). The last version you can require() on every Node.js version, including 18 and older, is 5.0.1, published Mar 11, 2025.

Which version of webpack-manifest-plugin still supports CommonJS / require()?

5.0.1 is the last version of webpack-manifest-plugin with a CommonJS build. Install it with "npm install webpack-manifest-plugin@5.0.1". Every version from 6.0.0 on is ESM-only.

How do I use webpack-manifest-plugin from a CommonJS file?

Use a dynamic import: const mod = await import("webpack-manifest-plugin"). On Node.js 20.19+, 22.12+ and newer, a plain require("webpack-manifest-plugin") also works for ESM packages that do not use top-level await. Alternatively pin webpack-manifest-plugin@5.0.1.

Does webpack-manifest-plugin work in Bun?

Yes. import "webpack-manifest-plugin" loaded successfully in Bun 1.4 on Sep 9, 2026.

Does webpack-manifest-plugin ship TypeScript types?

Yes. webpack-manifest-plugin bundles its own type declarations; no @types package is needed.

Links

Other esm-only packages

Similar popularity