Revert " 🔨 chore: Add Codecov Bundle Analysis (#6698)" (#8384)

This reverts commit b2e6777c81.
This commit is contained in:
Arvin Xu
2025-07-10 18:22:55 +08:00
committed by GitHub
parent b2e6777c81
commit 34f061b51a
4 changed files with 0 additions and 44 deletions
-22
View File
@@ -1,22 +0,0 @@
name: Bundle Analysis
on: [push, pull_request]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ secrets.BUN_VERSION }}
- name: Install deps
run: bun i
- name: Build with Bundle Analysis
run: bun run build:analyze
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
-8
View File
@@ -9,11 +9,3 @@ coverage:
flags:
- app
patch: off
comment:
layout: "bundle"
require_changes: true
require_base: true
require_head: true
require_bundle_changes: true
bundle_change_threshold: "10Kb"
-13
View File
@@ -1,6 +1,5 @@
import analyzer from '@next/bundle-analyzer';
import { withSentryConfig } from '@sentry/nextjs';
import { codecovNextJSWebpackPlugin } from '@codecov/nextjs-webpack-plugin';
import withSerwistInit from '@serwist/next';
import type { NextConfig } from 'next';
import ReactComponentName from 'react-scan/react-component-name/webpack';
@@ -257,18 +256,6 @@ const nextConfig: NextConfig = {
layers: true,
};
// Add Codecov webpack plugin
if (process.env.CODECOV_TOKEN) {
config.plugins.push(
codecovNextJSWebpackPlugin({
enableBundleAnalysis: true,
bundleName: 'lobechat-bundle',
uploadToken: process.env.CODECOV_TOKEN,
webpack: config,
}),
);
}
// 开启该插件会导致 pglite 的 fs bundler 被改表
if (enableReactScan && !isUsePglite) {
config.plugins.push(ReactComponentName({}));
-1
View File
@@ -278,7 +278,6 @@
"zustand-utils": "^2.1.0"
},
"devDependencies": {
"@codecov/nextjs-webpack-plugin": "^1.9.0",
"@commitlint/cli": "^19.8.1",
"@edge-runtime/vm": "^5.0.0",
"@huggingface/tasks": "^0.15.9",