GyaanSetu WebDev

Frontend, backend and devops for the modern web.

230 articlesDeep, practical knowledge

Frontend Team Cuts Bundle Size to Zero by Tree-Shaking Type-Safe API Mocks

The team built a dev-only mock layer using Axios interceptors and Vite’s tree-shaking. By gating the interceptor with import.meta.env.DEV, a custom VITE_ENABLE_MSW flag, and the MODE variable, the entire mock code is stripped from production bundles, keeping the bundle size unchanged.

WebDev · 3 min read

എന്റെ സ്വന്തം കോഡ് ടെസ്റ്റ് ചെയ്യുന്നു: കോൺട്രാക്ട് ടെസ്റ്റിംഗ് എന്താണ് വെളിപ്പെടുത്തിയത്

എന്റെ സ്വന്തം കോഡ് ടെസ്റ്റ് ചെയ്യുന്നു: കോൺട്രാക്ട് ടെസ്റ്റിംഗ് എന്താണ് വെളിപ്പെടുത്തിയത്. എന്റെ Zerodha ക്ലോൺ പൂർത്തിയായെന്ന് ഞാൻ കരുതി. ഇതൊരു Node ബാക്കെൻഡ്, React ഫ്രണ്ട്‌എൻഡ്, MongoDB, കൂടാതെ Razorpay എന്നിവയുള്ള MERN സ്റ്റാക്ക് പ്രോജക്റ്റായിരുന്നു...

WebDev · 3 min read

Team Automates VPAT Generation in CI, Blocking Inaccessible PRs

By embedding axe-core scans, custom Vitest keyboard helpers, and JSON-stored screen-reader results into the build, the pipeline fails any pull request that introduces an accessibility regression and automatically emits a PDF VPAT with each successful release.

WebDev · 3 min read