{"library":"rollup-plugin-hypothetical","title":"rollup-plugin-hypothetical","description":"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.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-hypothetical"],"cli":null},"imports":["import hypothetical from 'rollup-plugin-hypothetical'","import hypothetical from 'rollup-plugin-hypothetical'","const hypothetical = require('rollup-plugin-hypothetical')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport hypothetical from 'rollup-plugin-hypothetical';\n\nexport default {\n  input: 'main.js',\n  plugins: [\n    hypothetical({\n      files: {\n        'main.js': `\n          import { greet } from './greet.js';\n          console.log(greet('World'));\n        `,\n        'greet.js': `\n          export function greet(name) {\n            return 'Hello, ' + name + '!';\n          }\n        `\n      }\n    })\n  ],\n  output: { file: 'out.js', format: 'esm' }\n};\n\n// Then run: npx rollup -c","lang":"typescript","description":"Creates a Rollup config with hypothetical files for a simple greeting module.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}