Skip to content

Commit

Permalink
feat(deps): add million
Browse files Browse the repository at this point in the history
- Update Yarn to v3.6.4.
- Adjust Next.js configuration in next.config.js.
- Add "million" package to package.json.
- Update various dependencies in yarn.lock.
  • Loading branch information
FradSer committed Dec 8, 2023
1 parent eb5f117 commit 8d2e0f8
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 25 deletions.
22 changes: 10 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
/**
* @type {import('next').NextConfig}
*/

const withTM = require('next-transpile-modules')([
'@react-three/fiber',
'@react-three/xr',
'@react-three/drei',
'three',
'three-stdlib',
])
const million = require('million/compiler')

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: [
'@react-three/fiber',
'@react-three/xr',
'@react-three/drei',
'three',
'three-stdlib',
],
}

module.exports = withTM(nextConfig)
module.exports = million.next(nextConfig)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"leva": "^0.9.34",
"lodash": "^4.17.21",
"mdx-bundler": "^9.2.1",
"million": "latest",
"next": "^13.1.1",
"next-fonts": "^1.5.1",
"next-themes": "^0.2.1",
Expand All @@ -49,7 +50,6 @@
"autoprefixer": "^10.4.13",
"eslint": "^8.31.0",
"eslint-config-next": "^13.1.1",
"next-transpile-modules": "^10.0.0",
"postcss": "^8.4.20",
"prettier": "^2.8.1",
"prettier-plugin-tailwindcss": "^0.2.1",
Expand Down
Loading

0 comments on commit 8d2e0f8

Please sign in to comment.