@everframe/bundler-plugin

中文文档
1.7.0发布于 2026/11/04MITTypeScriptES Module近 30 天下载 2090

Bundler plugin that stamps an Everframe build identity into web bundles and uploads their source maps.

原始使用文档

@everframe/bundler-plugin

Stamps an Everframe build identity into web bundles and uploads their source maps at the end of each production build, so crashes from that build show original source. @everframe/web and @everframe/react pick the identity up automatically.

npm i -D @everframe/bundler-plugin
// vite.config.ts
import everframe from '@everframe/bundler-plugin/vite';

export default {
  plugins: [everframe({ appId: process.env.EVERFRAME_APP_ID })],
};

The other bundlers use the same options from their own subpath:

import everframe from '@everframe/bundler-plugin/webpack'; // plugins: [everframe({ appId })]
import everframe from '@everframe/bundler-plugin/rollup';  // plugins: [everframe({ appId })]
import everframe from '@everframe/bundler-plugin/esbuild'; // plugins: [everframe({ appId })]

For Next.js, wrap the config and build with webpack. Turbopack builds still succeed but are not stamped or uploaded:

// next.config.ts
import { withEverframe } from '@everframe/bundler-plugin/next';

export default withEverframe({}, { appId: process.env.EVERFRAME_APP_ID });
next build --webpack

Options

  • appId: the Everframe application UUID. When it is missing or invalid, a local build prints a warning and the plugin does nothing; in CI (CI=true) the build fails.
  • buildId: defaults to EVERFRAME_BUILD_ID, else a fresh UUID per build.
  • deleteAfterUpload: removes the maps after upload so they are never deployed (default true).
  • apiUrl: defaults to EVERFRAME_API_URL, else the production API, https://everframe.dev/api/v1.
  • uploadTimeoutMs: the overall limit for the upload, default 10 minutes. At the limit, requests in flight are aborted and the upload fails, so a stalled server can't hang the build.

Uploads need EVERFRAME_API_TOKEN, a token with the artifacts:write scope. Without it a local build warns, skips the upload and still removes the maps (unless deleteAfterUpload is false); a CI build fails.

版本与发布记录

@everframe/bundler-plugin 共发布 14 个版本,首次发布于 2026/10/12;过去 12 个月发布了 14 个版本。

版本发布日期距今
1.7.0latest2026/11/049 天前
1.6.72026/10/2916 天前
1.6.52026/10/2717 天前
1.6.42026/10/2717 天前
1.6.22026/10/2717 天前
1.6.12026/10/2420 天前

关于 @everframe/bundler-plugin 的常见问题

@everframe/bundler-plugin 是什么?

Bundler plugin that stamps an Everframe build identity into web bundles and uploads their source maps.

如何安装 @everframe/bundler-plugin?

在项目目录运行 npm install @everframe/bundler-plugin,或使用 pnpm add / yarn add / bun add。

@everframe/bundler-plugin 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@everframe/bundler-plugin 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@everframe/bundler-plugin 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@everframe/bundler-plugin 可以商用吗?

@everframe/bundler-plugin 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@everframe/bundler-plugin 的下载量有多少?

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

@everframe/bundler-plugin 还在维护吗?

最新版本 1.7.0 发布于 2026/11/04(9 天前);至今共发布 14 个版本,其中过去 12 个月发布了 14 个;首次发布于 2026/10/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。