canirequire

canirequireESM-only › @rolldown/pluginutils

Is @rolldown/pluginutils ESM-only? Can you require() it?

Plugin utilities for Rolldown

Last verified Sep 9, 2026 against @rolldown/pluginutils@1.0.1. JSON

ESM-only ESM-only — it has never shipped a CommonJS build

@rolldown/pluginutils has been ESM-only since its first stable release. There is no version you can require() on Node.js 18 or older.

On Node.js 20.19+, 22.12+ and every newer release, require("@rolldown/pluginutils") 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.

Latest
1.0.1 (May 13, 2026)
Module format
ESM-only
Last CommonJS version
none
ESM-only since
1.0.0 (May 7, 2026)
TypeScript types
None
Node engines
not declared
License
MIT

Does @rolldown/pluginutils@1.0.1 actually load? Runtime test results

Installed and executed on Sep 9, 2026 with require("@rolldown/pluginutils") from a CommonJS file and import "@rolldown/pluginutils" from an ES module.

Runtimerequire("@rolldown/pluginutils")import "@rolldown/pluginutils"
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 @rolldown/pluginutils

ES modules (import)

import pluginutils from "@rolldown/pluginutils";

CommonJS (require)

// Node.js 20.19+ / 22.12+ / newer (package has no top-level await):
const pluginutils = require("@rolldown/pluginutils");

// Any Node.js version:
const pluginutils = await import("@rolldown/pluginutils");

Module format by version

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

VersionsFormatFirst published
1.0.0 – 1.0.1ESM-onlyMay 7, 2026

Frequently asked

Is @rolldown/pluginutils ESM-only?

@rolldown/pluginutils@1.0.1 is ESM-only. @rolldown/pluginutils has been ESM-only since its first stable release. There is no version you can require() on Node.js 18 or older.

Which version of @rolldown/pluginutils still supports CommonJS / require()?

None. @rolldown/pluginutils has always been ESM-only. Use import, or await import("@rolldown/pluginutils") from CommonJS.

How do I use @rolldown/pluginutils from a CommonJS file?

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

Does @rolldown/pluginutils work in Bun?

Yes. import "@rolldown/pluginutils" loaded successfully in Bun 1.4 on Sep 9, 2026.

Does @rolldown/pluginutils ship TypeScript types?

No. @rolldown/pluginutils ships no type declarations and there is no @types package for it.

Links

Other esm-only packages

Similar popularity