Preparing for system design interviews?  Try bugzed.com →

vite-plugin-conditional-import

JSON →
library 0.1.7 ·javascript
verified Jun 18, 2026

A Vite plugin for conditionally importing modules based on environment, using file naming conventions (e.g., foo.client.js, foo.server.js). Version 0.1.7 is the current release; development appears to be in early stages. It supports both static and dynamic imports, and is inspired by vite-plugin-iso-import. Unlike build-time environment variable substitution, this plugin allows tree-shaking and import splitting per environment. Requires manual setup of define and currentEnv. Limited ecosystem adoption; use with caution for production.

total hits 12
actors 4 distinct systems
last hit 16d ago AhrefsBot
GPTBot
4
ClaudeBot
3
Script
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · 🇬🇧 United Kingdom