A Vite bundler adapter for monosize that enables building size measurement fixtures using Vite instead of esbuild. Version 0.3.0 supports customizing Vite's InlineConfig via a callback, allowing resolution aliases and other Vite-specific configuration. Unlike the default esbuild bundler, Vite provides broader compatibility with modern web tooling (e.g., Vue, Svelte plugins). This package is in early development (pre-1.0) and currently has a notable limitation: Vite cannot emit multiple self-contained IIFE bundles in a single build, so fixtures are built sequentially regardless of build mode. Ships TypeScript types.
npm install monosize-bundler-viteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures monosize to use Vite bundler with a custom alias for React.
Ensure your build time accounts for sequential processing; currently unavoidable.
Run 'npm install vite --save-dev' or equivalent; version compatibility should be checked.
Use default import: import viteBundler from 'monosize-bundler-vite';
N/A
Run 'npm install monosize-bundler-vite' and ensure node_modules is present.
Use 'import viteBundler from ...' (ESM) or 'const viteBundler = require('...').default' (CJS).