Skip to content

Commit

Permalink
build: Upgrade codecov bundle analysis plugins to 1.0.0 (#11306)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Sep 10, 2024
1 parent e0da76b commit 7bf41db
Show file tree
Hide file tree
Showing 4 changed files with 546 additions and 346 deletions.
2 changes: 1 addition & 1 deletion apps/changelog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/themes": "^2.0.3",
"@sentry/nextjs": "8.20.0",
"@sentry/nextjs": "8.29.0",
"@spotlightjs/spotlight": "^2.1.1",
"next": "^15.0.0-canary.83",
"next-auth": "^4.24.5",
Expand Down
7 changes: 4 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {redirects} = require('./redirects.js');

const {codecovWebpackPlugin} = require('@codecov/webpack-plugin');
const {codecovNextJSWebpackPlugin} = require('@codecov/nextjs-webpack-plugin');
const {withSentryConfig} = require('@sentry/nextjs');

const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
Expand Down Expand Up @@ -42,12 +42,13 @@ const nextConfig = {
outputFileTracingExcludes,
},

webpack: (config, _options) => {
webpack: (config, options) => {
config.plugins.push(
codecovWebpackPlugin({
codecovNextJSWebpackPlugin({
enableBundleAnalysis: typeof process.env.CODECOV_TOKEN === 'string',
bundleName: 'sentry-docs',
uploadToken: process.env.CODECOV_TOKEN,
webpack: options.webpack,
})
);

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/themes": "^2.0.3",
"@sentry-internal/global-search": "^1.1.0",
"@sentry/nextjs": "8.20.0",
"@sentry/nextjs": "8.29.0",
"@types/mdx": "^2.0.9",
"algoliasearch": "^4.23.3",
"esbuild": "^0.19.8",
Expand Down Expand Up @@ -105,7 +105,7 @@
},
"devDependencies": {
"@babel/preset-typescript": "^7.15.0",
"@codecov/webpack-plugin": "^0.0.1-beta.2",
"@codecov/nextjs-webpack-plugin": "^1.0.0",
"@spotlightjs/spotlight": "^2.0.0-alpha.1",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
Expand Down
Loading

0 comments on commit 7bf41db

Please sign in to comment.