# Is @ant-design/web3-common ESM-only? Can you require() it?

> @ant-design/web3-common@1.23.0 ships CommonJS and ESM builds. Dual package — require() works on every Node.js version we test; import works too.

[https://web3.ant.design](https://web3.ant.design)

Latest version 1.23.0, published Dec 26, 2025.

@ant-design/web3-common publishes both a CommonJS entry and a native ESM entry (ESM added in 0.1.0). require("@ant-design/web3-common") should work on every Node.js version the package supports; the runtime probe has not run for this version. import "@ant-design/web3-common" works alongside it.

## What to do

1. Nothing to change. require("@ant-design/web3-common") should work on every Node.js version the package supports; the runtime probe has not run for this version. import * as web3Common from "@ant-design/web3-common" works alongside it; use named imports for what the ESM entry exports.
2. TypeScript: types are bundled; install nothing extra.

## Facts

- Latest: 1.23.0 (Dec 26, 2025)
- Module format: Dual (CommonJS + ESM)
- Last CommonJS version: 1.23.0
- Native ESM since: 0.1.0
- TypeScript types: bundled
- Node engines: not declared
- Weekly downloads: 612
- License: unknown

## Runtime test results for @ant-design/web3-common@1.23.0

Runtime probe pending for this version (install failed: error: ConnectionRefused downloading package manifest antd). The facts above come from package.json.

## How to import @ant-design/web3-common

ES modules:

```js
import * as web3Common from "@ant-design/web3-common";
```

Namespace import shown because the ESM entry may have no default export; use named imports for what it exports.

CommonJS:

```js
const web3Common = require("@ant-design/web3-common");
```

## Module format by version

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

| Versions | Format | First published |
|---|---|---|
| 2.0.0 | CommonJS | Dec 29, 2023 |
| 1.3.2 – 1.23.0 | Dual (CommonJS + ESM) | Jan 16, 2024 |
| 1.1.0 – 1.3.1 | CommonJS | Dec 29, 2023 |
| 0.1.0 – 1.0.0 | Dual (CommonJS + ESM) | Dec 11, 2023 |

## Frequently asked

**Is @ant-design/web3-common ESM-only?**

@ant-design/web3-common@1.23.0 ships CommonJS and ESM builds. @ant-design/web3-common publishes both a CommonJS entry and a native ESM entry (ESM added in 0.1.0). require("@ant-design/web3-common") should work on every Node.js version the package supports; the runtime probe has not run for this version. import "@ant-design/web3-common" works alongside it.

**Can I require @ant-design/web3-common?**

Yes. @ant-design/web3-common ships a CommonJS entry alongside the native ESM entry. require("@ant-design/web3-common") should work on every Node.js version the package supports; the runtime probe has not run for this version.

**Does @ant-design/web3-common ship TypeScript types?**

Yes. @ant-design/web3-common bundles its own type declarations; no @types package is needed.

## Links

- [@ant-design/web3-common on npm](https://www.npmjs.com/package/@ant-design/web3-common)
- [Source repository](https://github.com/ant-design/ant-design-web3)
- [HTML version](https://canirequire.com/package/@ant-design/web3-common/)
- [JSON version](https://canirequire.com/package/@ant-design/web3-common.json)

---

For scripts and AI agents: any package is at https://canirequire.com/package/<name>/index.md (Markdown) or https://canirequire.com/package/<name>.json (JSON); the site index is https://canirequire.com/llms.txt. Fetch the URL directly; no search needed.
