skip to Main Content

The manifest contains mappings of module IDs to their associated chunks and asset files.

I did’t find context.modules for vite react ssr. The @vitejs/plugin-vue supports it for vue. What about the @vitejs/plugin-react?

Is there a vite plugin which supports context.modules for react SSR ?

2

Answers


  1. Chosen as BEST ANSWER

    I added a plugin to obtain module dependencies

    rollup-plugin-visualizer


  2. I’m building exactly this because vite doesn’t support preloading lazy loaded modules or CSS chunks in an application full of React.lazy() pages.

    It’s based of the regular manifest.json because it contains the proper import mappings which ssr-manifest.json does not.

    https://github.com/wille/vite-preload

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search