Skip to content

Commit 7bf41db

Browse files
authored
build: Upgrade codecov bundle analysis plugins to 1.0.0 (#11306)
1 parent e0da76b commit 7bf41db

File tree

4 files changed

+546
-346
lines changed

4 files changed

+546
-346
lines changed

apps/changelog/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@radix-ui/react-icons": "^1.3.0",
2222
"@radix-ui/react-toolbar": "^1.0.4",
2323
"@radix-ui/themes": "^2.0.3",
24-
"@sentry/nextjs": "8.20.0",
24+
"@sentry/nextjs": "8.29.0",
2525
"@spotlightjs/spotlight": "^2.1.1",
2626
"next": "^15.0.0-canary.83",
2727
"next-auth": "^4.24.5",

next.config.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const {redirects} = require('./redirects.js');
22

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

66
const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
@@ -42,12 +42,13 @@ const nextConfig = {
4242
outputFileTracingExcludes,
4343
},
4444

45-
webpack: (config, _options) => {
45+
webpack: (config, options) => {
4646
config.plugins.push(
47-
codecovWebpackPlugin({
47+
codecovNextJSWebpackPlugin({
4848
enableBundleAnalysis: typeof process.env.CODECOV_TOKEN === 'string',
4949
bundleName: 'sentry-docs',
5050
uploadToken: process.env.CODECOV_TOKEN,
51+
webpack: options.webpack,
5152
})
5253
);
5354

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@radix-ui/react-toolbar": "^1.0.4",
5959
"@radix-ui/themes": "^2.0.3",
6060
"@sentry-internal/global-search": "^1.1.0",
61-
"@sentry/nextjs": "8.20.0",
61+
"@sentry/nextjs": "8.29.0",
6262
"@types/mdx": "^2.0.9",
6363
"algoliasearch": "^4.23.3",
6464
"esbuild": "^0.19.8",
@@ -105,7 +105,7 @@
105105
},
106106
"devDependencies": {
107107
"@babel/preset-typescript": "^7.15.0",
108-
"@codecov/webpack-plugin": "^0.0.1-beta.2",
108+
"@codecov/nextjs-webpack-plugin": "^1.0.0",
109109
"@spotlightjs/spotlight": "^2.0.0-alpha.1",
110110
"@tailwindcss/forms": "^0.5.7",
111111
"@tailwindcss/typography": "^0.5.10",

0 commit comments

Comments
 (0)