Generate a module graph on every build by adding the plugin to your vite.config.ts file. You can tune your graph to exclude node_modules or other directories by using the exclude option.