-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
feat(codecov): bundle analyzer #7829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1cc6940
6c74881
634bd49
06731c7
1b5aadf
69961c8
13815b4
8d8b4d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
'use strict'; | ||
import { codecovNextJSWebpackPlugin } from '@codecov/nextjs-webpack-plugin'; | ||
import createNextIntlPlugin from 'next-intl/plugin'; | ||
|
||
import { BASE_PATH, ENABLE_STATIC_EXPORT } from './next.constants.mjs'; | ||
|
@@ -96,6 +97,20 @@ const nextConfig = { | |
'shiki', | ||
], | ||
}, | ||
webpack: (config, options) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this work even with TurboPack enabled? We are by default building on CI with TurboPack... So I imagine this wouldn't work? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Welp, apparently you passing the webpack config flag is disabling turbopack :/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Huh https://github.com/nodejs/nodejs.org/blob/main/apps/site/package.json#L6 did someone remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was removed as part of the Cloudflare adapter PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe that should be re enabled? I'll adjust this PR accordingly if that flag is added back There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
if (process.env.ANALYZE) { | ||
config.plugins.push( | ||
codecovNextJSWebpackPlugin({ | ||
enableBundleAnalysis: true, | ||
bundleName: '@node-core/website', | ||
webpack: options.webpack, | ||
telemetry: false, | ||
}) | ||
); | ||
} | ||
|
||
return config; | ||
}, | ||
}; | ||
|
||
const withNextIntl = createNextIntlPlugin('./i18n.tsx'); | ||
|
Uh oh!
There was an error while loading. Please reload this page.