{"library":"vite-env-only","type":"library","category":null,"description":"vite-env-only is a suite of Vite plugins designed to facilitate the isolation of client-side and server-side code within a single codebase. It provides two primary functionalities: `denyImports` to prevent specific modules or files from being bundled into client or server builds, and `envOnlyMacros` (`serverOnly$`, `clientOnly$`) to conditionally include or exclude expressions based on the target environment. The current stable version is 3.0.3, with a release cadence that includes regular patch updates for improved dead code elimination and occasional minor/major releases for new features or architectural changes. A key differentiator from Vite's native `import.meta.env.SSR` is its ability to perform dead-code elimination in development builds, not just production, leading to more accurate environment simulation and smaller bundles during development.","language":"javascript","status":"active","version":"3.0.3","tags":["javascript","vite-plugin","env","only","client","server","macro","deny","imports"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vite-env-only","imports":["import { denyImports } from 'vite-env-only'","import { envOnlyMacros } from 'vite-env-only'","import { serverOnly$ } from 'vite-env-only/macros'","import { clientOnly$ } from 'vite-env-only/macros'"]},{"cmd":"yarn add vite-env-only","imports":[]},{"cmd":"pnpm add vite-env-only","imports":[]}],"homepage":null,"github":"https://github.com/pcattori/vite-env-only","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-env-only","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-env-only/compatibility"}}