A Rollup plugin that provides an in-memory virtual file system, allowing you to resolve and bundle files without a physical filesystem. Current version: 4.0.1-alpha.0 (unstable, pre-release). Release cadence: irregular, alpha stage. Key differentiator: enables full Rollup bundling purely from virtual file maps, with optional fallback to real filesystem. Supports custom extension resolution. TypeScript types included.
npm install rollup-plugin-virtual-fsVerified import paths — ran on the pinned version, not inferred.
Configures Rollup to bundle from an in-memory virtual file system using rollup-plugin-virtual-fs, enabling zero-disk bundling for testing or ephemeral code.
Change 'import virtualFs from ...' to 'import { virtualFs } from ...'.Use 'extensions' (array of strings) instead of 'extension' (string).
Pin to a specific version and test thoroughly in non-production environments.
Prefix input paths with 'file://'.
Leave memoryOnly as true (default) unless you explicitly need fallback to disk.
Ensure you have the latest alpha version installed: npm install rollup-plugin-virtual-fs@4.0.1-alpha.0. If types are missing, add a declaration file: declare module 'rollup-plugin-virtual-fs';
Change import to: import { virtualFs } from 'rollup-plugin-virtual-fs';Use 'extensions' as an array of strings, e.g., extensions: ['.js', '.ts'].
No dependency data recorded yet.