Skip to content

Commit 14c2855

Browse files
committed
chore: Remove unnecessary dependency next-transpile-modules
1 parent 3ba7d91 commit 14c2855

5 files changed

Lines changed: 557 additions & 17 deletions

File tree

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,11 @@
3939
"@typescript-eslint/no-var-requires": "off",
4040
},
4141
},
42+
{
43+
"files": ["./next-env.d.ts"],
44+
"rules": {
45+
"@typescript-eslint/triple-slash-reference": "off",
46+
}
47+
}
4248
],
4349
}

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

next.config.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/** @type {import('next').NextConfig} */
2-
3-
// eslint-disable-next-line @typescript-eslint/no-var-requires
4-
const withTM = require('next-transpile-modules')(['@react-chess/chessground'])
5-
6-
module.exports = withTM({
2+
module.exports = {
3+
transpilePackages: ['@react-chess/chessground'],
74
reactStrictMode: false,
85
output: 'standalone',
96
async redirects() {
@@ -53,4 +50,4 @@ module.exports = withTM({
5350
]
5451
},
5552
skipTrailingSlashRedirect: true,
56-
})
53+
}

0 commit comments

Comments
 (0)