Skip to content

Commit bce8430

Browse files
authored
dependency clean-up (#1991)
1 parent 1f5aafd commit bce8430

28 files changed

+104
-903
lines changed

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import './.next/types/routes.d.ts';
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Lines changed: 17 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
// @ts-check
1+
import type { NextConfig } from 'next';
2+
import { withSentryConfig } from '@sentry/nextjs';
3+
import bundleAnalyzer from '@next/bundle-analyzer';
4+
import { svgoConfig } from './src/common/config/svgo';
5+
26
const hasBundleAnalyzer = process.env.ANALYZE === 'true';
3-
const { withSentryConfig } = require('@sentry/nextjs');
4-
const withBundleAnalyzer = require('@next/bundle-analyzer')({ enabled: hasBundleAnalyzer });
5-
const svgoConfig = require('./src/common/config/svgo');
7+
const withBundleAnalyzer = bundleAnalyzer({ enabled: hasBundleAnalyzer });
8+
const jsonSvgoConfig = JSON.parse(JSON.stringify(svgoConfig));
69

7-
/**
8-
* @see https://nextjs.org/docs/basic-features/typescript#type-checking-nextconfigjs
9-
* @type {import('next').NextConfig}
10-
*/
11-
const nextConfig = {
10+
const nextConfig: NextConfig = {
1211
turbopack: {
1312
rules: {
1413
'*.svg': {
15-
loaders: ['@svgr/webpack'],
14+
loaders: [
15+
{
16+
loader: '@svgr/webpack',
17+
options: {
18+
svgo: jsonSvgoConfig,
19+
},
20+
},
21+
],
1622
as: '*.js',
1723
},
1824
},
@@ -30,7 +36,6 @@ const nextConfig = {
3036
],
3137
},
3238

33-
/** @see https://nextjs.org/docs/api-reference/next.config.js/rewrites */
3439
async rewrites() {
3540
return [
3641
{
@@ -44,7 +49,6 @@ const nextConfig = {
4449
];
4550
},
4651

47-
/** @see https://nextjs.org/docs/api-reference/next.config.js/redirects */
4852
async redirects() {
4953
return [
5054
{
@@ -69,48 +73,8 @@ const nextConfig = {
6973
},
7074
];
7175
},
72-
73-
/** @see https://nextjs.org/docs/api-reference/next.config.js/headers */
74-
async headers() {
75-
return [
76-
{
77-
source: '/_next/static/([^/]+/pages|chunks|runtime|css|fonts)/(.+)',
78-
headers: [
79-
{
80-
key: 'cache-control',
81-
value: 'max-age=31536000',
82-
},
83-
],
84-
},
85-
{
86-
source: '/(favicon.ico|robots.txt|manifest.json|humans.txt|sitemap.xml|sitemap.xsl)',
87-
headers: [
88-
{
89-
key: 'Cache-Control',
90-
value: 'public, max-age=0, must-revalidate',
91-
},
92-
],
93-
},
94-
];
95-
},
96-
97-
webpack: (config) => {
98-
config.module.rules.push({
99-
test: /\.svg$/,
100-
use: [
101-
{
102-
loader: '@svgr/webpack',
103-
options: {
104-
svgoConfig,
105-
},
106-
},
107-
],
108-
});
109-
110-
return config;
111-
},
11276
};
11377

114-
module.exports = withSentryConfig(withBundleAnalyzer(nextConfig), {
78+
export default withSentryConfig(withBundleAnalyzer(nextConfig), {
11579
silent: true,
11680
});

package.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,12 @@
4545
"fingerprintjs2": "^2.1.4",
4646
"fontfaceobserver": "^2.3.0",
4747
"formik": "^2.4.6",
48-
"intersection-observer": "^0.12.2",
4948
"lodash": "^4.17.21",
5049
"logrocket": "^10.1.0",
5150
"logrocket-react": "^6.0.3",
5251
"next": "^16.2.1",
5352
"next-sitemap": "^4.2.3",
5453
"object-hash": "^3.0.0",
55-
"path": "^0.12.7",
56-
"prop-types": "^15.8.1",
5754
"react": "^19.2.4",
5855
"react-dom": "^19.2.4",
5956
"react-player": "^2.16.0",
@@ -79,7 +76,6 @@
7976
"@types/logrocket-react": "^3.0.3",
8077
"@types/node": "^24.9.1",
8178
"@types/object-hash": "^3.0.0",
82-
"@types/prop-types": "^15.7.15",
8379
"@types/react": "^19.2.14",
8480
"@types/react-dom": "^19.2.3",
8581
"@vitejs/plugin-react": "^4.4.1",
@@ -89,7 +85,6 @@
8985
"axios-mock-adapter": "^2.1.0",
9086
"chromatic": "^15.3.0",
9187
"cross-env": "^7.0.3",
92-
"css-loader": "^6.7.1",
9388
"dotenv": "^17.2.3",
9489
"eslint": "^9.39.4",
9590
"eslint-config-prettier": "^10.1.8",
@@ -105,25 +100,16 @@
105100
"eslint-plugin-react-hooks": "^7.0.1",
106101
"eslint-plugin-storybook": "^10.3.2",
107102
"eslint-plugin-unicorn": "^63.0.0",
108-
"express": "^4.18.1",
109-
"file-loader": "^6.2.0",
110103
"husky": "^9.1.7",
111-
"identity-obj-proxy": "^3.0.0",
112104
"jsdom": "^26.1.0",
113105
"lint-staged": "13.0.3",
114106
"postcss": "^8.5.6",
115107
"prettier": "^3.8.1",
116108
"prettier-plugin-tailwindcss": "^0.7.2",
117-
"process": "0.11.10",
118-
"react-is": "^19.2.4",
119-
"require-context.macro": "^1.2.2",
120-
"start-server-and-test": "^1.14.0",
121109
"storybook": "^10.3.1",
122-
"style-loader": "^3.3.1",
123110
"tailwindcss": "^4.2.2",
124111
"typescript": "^5.9.3",
125112
"typescript-eslint": "^8.57.1",
126-
"url-loader": "^4.1.1",
127113
"vite-plugin-magical-svg": "^1.9.0",
128114
"vite-tsconfig-paths": "^6.1.1",
129115
"vitest": "^3.1.2",

0 commit comments

Comments
 (0)