An esbuild plugin that resolves the common issue where Element UI components cannot be used properly in Vite projects due to the `$isServer` property being undefined. Current stable version is 1.0.2, with infrequent releases. It addresses a specific compatibility problem between Element UI and Vite's dependency optimization by patching the Element UI module during esbuild bundling. This plugin is a targeted solution for developers who use Element UI with Vite and encounter runtime errors related to `$isServer`.
npm install esbuild-plugin-vite-element-uiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure the esbuild plugin in vite.config.js to fix Element UI '$isServer' error.
Place the plugin inside optimizeDeps.esbuildOptions.plugins, as shown in the quickstart.
Ensure you import Element UI normally (not individual components) for the plugin to patch correctly.
Install and configure esbuild-plugin-vite-element-ui as shown in the quickstart.
No dependency data recorded yet.