Skip to content

Commit

Permalink
🚑 ES module dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw committed Jun 7, 2023
1 parent 6b01cf4 commit 69927df
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'off',
'no-continue': 'off',
'linebreak-style': 0,
'import/extensions': 'off',
'vitest/max-nested-describe': [
'error',
{
Expand Down
14 changes: 0 additions & 14 deletions next.config.js

This file was deleted.

17 changes: 17 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -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'],
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@
"automerge": true
}
}
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"next.config.js",
"next.config.mjs",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
}

0 comments on commit 69927df

Please sign in to comment.