# @epa-wg/custom-element-dist 中文文档

规范地址：https://npmcn.com/package/%40epa-wg/custom-element-dist/

版本：0\.0\.39
npm 元数据更新时间：2026-05-03T16:21:16.698Z
中文译文更新时间：2026-11-14T02:05:10.526Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40epa-wg/custom-element-dist
原文对照：https://npmcn.com/package/%40epa-wg/custom-element-dist/?lang=original
项目主页：https://github.com/EPA-WG/custom-element#readme
源码仓库：https://github.com/EPA-WG/custom-element-dist

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：19.8 MB，549 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：未声明
- 运行依赖：2 个
- 首次发布：2024-05-13T05:27:10.377Z
- 最新版本发布：2026-05-03T16:21:16.573Z
- 近 30 天下载量：2569（2026-10-14 至 2026-11-12，npm 官方下载统计）
- 已发布版本数：19（近 12 个月 6 个）

## 中文简介

\[@epa-wg/custom-element\]\[git-url\]的二进制分布,包含"故事本"和测试覆盖

## 安装

```sh
npm install @epa-wg/custom-element-dist
```

也可以使用：`pnpm add @epa-wg/custom-element-dist`、`yarn add @epa-wg/custom-element-dist`、`bun add @epa-wg/custom-element-dist`

## README

# 自定义元素化

二进制分布 [@epa-wg/ 客户元素](https://github.com/EPA-WG/custom-element) 包含故事本和测试覆盖

`custom-element` [![git](https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/mark-github.svg) GitHub 图像](https://github.com/EPA-WG/custom-element) | [测试项目](https://github.com/EPA-WG/custom-element-dist) | [![NPM version](https://img.shields.io/npm/v/@epa-wg/custom-element-dist.svg)](https://npmjs.org/package/@epa-wg/custom-element-dist) | [![coverage](https://unpkg.com/@epa-wg/custom-element-dist@0.0.39/coverage/src/custom-element/coverage.svg)](https://unpkg.com/@epa-wg/custom-element-dist@0.0.39/coverage/src/custom-element/index.html) | [故事书](https://unpkg.com/@epa-wg/custom-element-dist@0.0.39/storybook-static/index.html) | [材料定制内容](https://unpkg.com/@epa-wg/custom-element-dist@0.0.39/src/material/components.html)

# 内容

\[bin/building.sh\]生成二进制值,与国家防范机制软件包一样保留在Git发行中. 它为建设时刻的遵守记录提供了服务.

## [数字](https://npmcn.com/package/%40epa-wg/custom-element-dist/dist)

可使用精密捆绑作为 CDN 条目 : [自定义元素- bundle.js](https://unpkg.com/@epa-wg/custom-element-dist@0.0.39/dist/custom-element-bundle.js)

每一组成部分 `custom-element` 自由是作为散装JS提供的.

## [覆盖范围](https://npmcn.com/package/%40epa-wg/custom-element-dist/coverage)

为 lib 和 Story Book 提供单位测试覆盖

## [故事书-静态](https://unpkg.com/@epa-wg/custom-element-dist@0.0.39/storybook-static/index.html)

CDN版本"故事本".

## 常见问题

### @epa-wg/custom-element-dist 是什么？

\[@epa-wg/custom-element\]\[git-url\]的二进制分布,包含"故事本"和测试覆盖

### 如何安装 @epa-wg/custom-element-dist？

在项目目录运行 npm install @epa-wg/custom-element-dist，或使用 pnpm add / yarn add / bun add。

### @epa-wg/custom-element-dist 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/epa-wg\_\_custom-element-dist 是否存在。

### @epa-wg/custom-element-dist 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @epa-wg/custom-element-dist 可以商用吗？

@epa-wg/custom-element-dist 使用 Apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @epa-wg/custom-element-dist 的下载量有多少？

根据 npm 官方下载统计，@epa-wg/custom-element-dist 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,569 次，日均约 86 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @epa-wg/custom-element-dist 还在维护吗？

最新版本 0\.0\.39 发布于 2026/05/04（6 个月前）；至今共发布 19 个版本，其中过去 12 个月发布了 6 个；首次发布于 2024/05/13。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

