Update Sanity example deps and tsconfig (#64570)

v3.38.0 of `sanity` fixes a couple of bugs affecting Next.js:
- [crash in hotspot and cropping on
Next.js](https://github.com/sanity-io/sanity/pull/6380)
- [regression hiding tool buttons when embedded on
Next.js](https://github.com/sanity-io/sanity/pull/6338)

Also adjusts the `tsconfig.json` to use `module: Preserve`.
This commit is contained in:
Cody Olsen 2024-04-16 20:01:44 +02:00 committed by GitHub
parent 3cf4183d9b
commit 111608171f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 12 deletions

View file

@ -16,23 +16,23 @@
"@sanity/assist": "3.0.3",
"@sanity/icons": "2.11.8",
"@sanity/image-url": "1.0.2",
"@sanity/preview-url-secret": "1.6.7",
"@sanity/vision": "3.37.2",
"@sanity/preview-url-secret": "1.6.8",
"@sanity/vision": "3.38.0",
"@tailwindcss/typography": "^0.5.12",
"@types/node": "^20.12.7",
"@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vercel/speed-insights": "^1.0.10",
"autoprefixer": "^10.4.19",
"date-fns": "^3.6.0",
"next": "latest",
"next-sanity": "9.0.0",
"next-sanity": "9.0.3",
"postcss": "^8.4.38",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "^7.8.1",
"sanity": "3.37.2",
"sanity-plugin-asset-source-unsplash": "3.0.0",
"sanity": "3.38.0",
"sanity-plugin-asset-source-unsplash": "3.0.1",
"server-only": "^0.0.1",
"styled-components": "6.1.8",
"tailwindcss": "^3.4.3",

View file

@ -7,11 +7,7 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
// Use module: preserve, and remove moduleResolution, esModuleInterop and resolveJsonModule once Next ships support
"module": "esnext",
"moduleResolution": "bundler",
"esModuleInterop": true,
"resolveJsonModule": true,
"module": "preserve",
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,