Skip to main content

add-cdn-bundle

Create a new CDN bundle for the browser package with specified features

来源信息

仓库
getsentry/sentry-javascript
最近来源活动
2026年2月26日 14:35
检测到的 SKILL.md 语言
英语
星标
8,762
分支
1,868

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
add-cdn-bundle
description
Create a new CDN bundle for the browser package with specified features
argument-hint
<feature-combo> (e.g., replay.logs.metrics, tracing.logs, tracing.replay.feedback.logs.metrics)
# Add CDN Bundle Skill This skill creates a new CDN bundle for the browser package that includes a specific combination of features. ## Input The user provides a feature combination using dot notation: - `logs.metrics` - Bundle with logs and metrics - `replay.logs.metrics` - Bundle with replay, logs, and metrics - `tracing.replay.logs` - Bundle with tracing, replay, and logs - `tracing.replay.feedback.logs.metrics` - Full featured bundle **Feature order in bundle names:** `tracing` → `replay` → `feedback` → `logs` → `metrics` ## Instructions Follow the detailed guide at [docs/adding-cdn-bundle.md](../../../docs/adding-cdn-bundle.md) to create the bundle. ### Quick Reference - Naming Conventions Given a feature combination, derive these variants: | Placeholder | Example (`replay.logs.metrics`) | | ------------------------------- | ------------------------------- | | `{FEATURE_COMBO}` | `replay.logs.metrics` | | `{feature_combo}` | `replay_logs_metrics` | | `{featureCombo}` | `replayLogsMetrics` | | `{Human Readable Features}` | `Replay, Logs, Metrics` | | `{Human Readable Feature List}` | `Replay, Logs, and Metrics` | ### Quick Reference - Files to Create/Modify 1. **Create** `packages/browser/src/index.bundle.{FEATURE_COMBO}.ts` 2. **Create** `packages/browser/test/index.bundle.{FEATURE_COMBO}.test.ts` 3. **Modify** `packages/browser/rollup.bundle.config.mjs` 4. **Modify** `.size-limit.js` 5. **Modify** `dev-packages/browser-integration-tests/package.json` 6. **Modify** `dev-packages/browser-integration-tests/utils/generatePlugin.ts` 7. **Modify** `.github/workflows/build.yml` ### Verification Steps After making changes: ```bash yarn lint cd packages/browser && yarn build:dev cd packages/browser && yarn test ```
在 GitHub 查看