Add option in vite config to enable tree shake on build.
Add option in vite config to enable tree shake on build.