Skip to content

Commit

Permalink
fix: next js transpile error
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryVerkhoturov committed Jun 18, 2023
1 parent 96fcad5 commit 446e75e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { env } from './src/env.mjs'
const config = {
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'mjs', 'cjs', 'md', 'mdx'],
reactStrictMode: true,
transpilePackages: ['three'],
images: {
domains: [
'www.mirea.ru',
Expand Down Expand Up @@ -75,4 +74,6 @@ const withMDX = require('@next/mdx')({
},
})

export default withPWA(withMDX(withBundleAnalyzer(config)))
const withTM = require('next-transpile-modules')(['three'])

export default withTM(withPWA(withMDX(withBundleAnalyzer(config))))
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"eslint-plugin-react": "^7.32.2",
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"next-transpile-modules": "^10.0.0",
"postcss": "^8.4.21",
"prettier": "2.8.7",
"prettier-plugin-tailwindcss": "^0.2.6",
Expand Down

0 comments on commit 446e75e

Please sign in to comment.