You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded to version 3.2.0 to use embedded studio without the need for an SSR adapter. I successfully built the project, but I encountered a few warnings that caught my attention.
Export "structureLocaleNamespace" of module "node_modules/sanity/lib/_chunks-es/pane.mjs" was reexported through module "node_modules/sanity/lib/structure.mjs" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "node_modules/sanity/lib/_chunks-es/pane.mjs" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.
and
10:36:54 [vite] dist/_astro/studio-component.cy3tc0Fv.js 4,520.35 kB │ gzip: 1,370.49 kB
10:36:54 [WARN] [vite]
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
Are there any suggestions on how to set up rollup with vite to reconfigure output.manualChunks as suggested to ensure that pointed modules end up in the same chunk and simultaneously improve chunking?
To Reproduce
Steps to reproduce the behavior:
Bump @astro/sanity to 3.2.0
Setup Sanity Studio in embedded mode
Add studioRouterHistory: 'hash'in sanity parameters of astro.config
astro build in Terminal
See output
Expected behavior
It should build without any warning.
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug
I recently upgraded to version 3.2.0 to use embedded studio without the need for an SSR adapter. I successfully built the project, but I encountered a few warnings that caught my attention.
and
Are there any suggestions on how to set up rollup with vite to reconfigure
output.manualChunks
as suggested to ensure that pointed modules end up in the same chunk and simultaneously improve chunking?To Reproduce
Steps to reproduce the behavior:
studioRouterHistory: 'hash'
in sanity parameters of astro.configastro build
in TerminalExpected behavior
It should build without any warning.
Screenshots
If applicable, add screenshots to help explain your problem.
Which versions of Sanity are you using?
@sanity/cli (global): 3.71.2 (latest: 3.74.1)
@sanity/astro: 3.2.0 (up to date)
@sanity/image-url: 1.1.0 (up to date)
@sanity/visual-editing: 2.12.12 (latest: 2.13.1)
sanity: 3.74.0 (latest: 3.74.1)
What operating system are you using?
MacOS Sequoia 15.2
Which versions of Node.js / npm are you running?
npm 10.7.0
node v22.2.0
The text was updated successfully, but these errors were encountered: