Closed BYK closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
spotlightjs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 7, 2024 3:29pm |
The build changes look fine to me although I remember we had some issues with process for some reason ending up in client code and of course being undefined. I'm curious if the changes here solve this or if we'd regress. But to be honest, I didn't make these changes back then so can't tell you specifics unfortunately :/
For this, I rely on e2e tests as it should be caught there. That said I'll do another manual pass before merging to make sure this doesn't cause any issues. It may as well be solved with newer versions of vite
too.
This change mainly removes the enforcement of
process.env.NODE_ENV === 'development'
for Spotlight which in turn also enables significant bundle size savings as we include the React library which does optimizations based on this value.Without the patch:
With the patch: