A Rollup plugin that provides a virtual file system for testing other plugins without actual disk I/O. Version 2.1.1 is stable, with infrequent releases. Unlike other virtual file plugins, it supports sourcemaps via { code, map } objects, configurable fallthrough behavior, implied extensions, and custom CWD. Ideal for unit testing Rollup plugins that depend on file resolution.
npm install rollup-plugin-hypotheticalVerified import paths — ran on the pinned version, not inferred.
Creates a Rollup config with hypothetical files for a simple greeting module.
Use absolute paths or set options.cwd explicitly to match your project root.
Use options.filesMap (Map) instead to avoid prototype pollution.
Set allowExternalFallthrough: false to force explicit definitions for external imports.
If relying on the old default, explicitly set impliedExtensions: ['.js'].
Add the file to options.files or set allowFallthrough: true if you want Rollup to resolve it from disk.
Run `npm install --save-dev rollup-plugin-hypothetical`.
Use `import hypothetical from 'rollup-plugin-hypothetical'` (default import).
No dependency data recorded yet.