Update major dependencies (#408)

This commit is contained in:
Luke Vella 2023-01-20 10:43:48 +00:00 committed by GitHub
parent 6332d6459f
commit e845d36c51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 1294 additions and 775 deletions

View file

@ -9,15 +9,13 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
const moduleExports = {
future: {
webpack5: false,
},
const nextConfig = {
i18n: i18n,
productionBrowserSourceMaps: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
issuer: /\.[jt]sx?$/,
use: ["@svgr/webpack"],
});
@ -56,6 +54,9 @@ const moduleExports = {
},
];
},
sentry: {
hideSourceMaps: false,
},
};
const sentryWebpackPluginOptions = {
@ -73,5 +74,5 @@ const sentryWebpackPluginOptions = {
// Make sure adding Sentry options is the last code to run before exporting, to
// ensure that your source maps include changes from all other Webpack plugins
module.exports = withBundleAnalyzer(
withSentryConfig(moduleExports, sentryWebpackPluginOptions),
withSentryConfig(nextConfig, sentryWebpackPluginOptions),
);