Skip to content

Commit 827c8d1

Browse files
committed
Добавлен файл конфигурации браузеров, обновлены настройки компилятора в next.config.js, изменен целевой уровень TypeScript на es2022, а также обновлены контактные данные в конфигурации.
1 parent 247d326 commit 827c8d1

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

.browserslistrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
last 2 versions
2+
not dead
3+
> 0.5%
4+
not ie 11
5+
not op_mini all

lib/public/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const publicConfig = {
22
contacts: {
3-
email: "1fokingleb+nxrig@gmail.com",
4-
telegram: "https://t.me/glebkaf",
3+
email: "request@nxrig.com",
4+
telegram: "https://t.me/+JUGLVuLHoKgzZWZi",
55
},
66
email: {
77
subjects: {

next.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ const nextConfig = {
1111
basePath: "",
1212
images: { unoptimized: true },
1313
trailingSlash: true,
14+
swcMinify: true,
15+
experimental: {
16+
optimizePackageImports: ["lodash"],
17+
},
18+
compiler: {
19+
removeConsole: isProduction,
20+
},
1421
};
1522

1623
export default nextConfig;

tsconfig.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
3+
"target": "es2022",
4+
"lib": ["dom", "dom.iterable", "esnext"],
95
"allowJs": false,
106
"skipLibCheck": true,
117
"esModuleInterop": true,
@@ -34,13 +30,6 @@
3430
}
3531
]
3632
},
37-
"include": [
38-
"next-env.d.ts",
39-
"**/*.ts",
40-
"**/*.tsx",
41-
".next/types/**/*.ts"
42-
],
43-
"exclude": [
44-
"node_modules"
45-
]
33+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
34+
"exclude": ["node_modules"]
4635
}

0 commit comments

Comments
 (0)