Preparing for system design interviews?  Try bugzed.com →

vite-plugin-cjs-interop

JSON →
library 3.3.0 ·javascript
verified Jun 18, 2026

A Vite plugin that unwraps default imports from CommonJS (CJS) dependencies during SSR, solving the issue where CJS modules with both default and named exports require accessing the default via .default in ESM. Version 3.3.0 is current, with recent releases every few months. It works around Vite's SSR hoisting bug (vite#22122) and supports Vite 6.4–8. Automatically transforms import statements so that default imports work seamlessly in SSR, and handles dynamic imports to allow both ESM namespace and CJS direct property access. Competes with vite-plugin-commonjs but focuses specifically on default interop during SSR. ESM-only since v3 headless.

total hits 25
actors 6 distinct systems
last hit 19d ago human
ChatGPT-User
5
GPTBot
4
ClaudeBot
3
Script
1
Humans
8

top countries 🇺🇸 United States · VN · 🇵🇱 Poland · 🇨🇦 Canada · 🇬🇧 United Kingdom