🚑 ES module dependencies

This commit is contained in:
Manuel
2023-06-07 21:11:32 +02:00
parent 6b01cf4efc
commit 69927dfcab
5 changed files with 21 additions and 17 deletions

View File

@@ -31,6 +31,7 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/no-non-null-assertion': 'off',
'no-continue': 'off', 'no-continue': 'off',
'linebreak-style': 0, 'linebreak-style': 0,
'import/extensions': 'off',
'vitest/max-nested-describe': [ 'vitest/max-nested-describe': [
'error', 'error',
{ {

View File

@@ -1,14 +0,0 @@
const { i18n } = require('./next-i18next.config');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
module.exports = withBundleAnalyzer({
images: {
domains: ['cdn.jsdelivr.net'],
},
reactStrictMode: true,
output: 'standalone',
i18n,
});

17
next.config.mjs Normal file
View File

@@ -0,0 +1,17 @@
const { i18n } = await import('./next-i18next.config.js');
const { default: configreBundleAnalyser } = await import('@next/bundle-analyzer');
const withBundleAnalyzer = configreBundleAnalyser({
enabled: process.env.ANALYZE === 'true',
});
export default withBundleAnalyzer({
images: {
domains: ['cdn.jsdelivr.net'],
},
reactStrictMode: true,
output: 'standalone',
i18n,
transpilePackages: ['@jellyfin/sdk'],
});

View File

@@ -28,7 +28,7 @@
"next-env.d.ts", "next-env.d.ts",
"**/*.ts", "**/*.ts",
"**/*.tsx", "**/*.tsx",
"next.config.js", "next.config.mjs",
".next/types/**/*.ts" ".next/types/**/*.ts"
], ],
"exclude": [ "exclude": [