{"library":"rollup-plugin-ephemeral","title":"rollup-plugin-ephemeral","description":"A Rollup plugin for creating virtual modules that behave like real files, useful for testing or generating modules on-the-fly. Version 0.0.1 is the initial unstable release. Different from @rollup/plugin-virtual in that ephemeral modules are treated as real file modules by Rollup, affecting resolution and caching behavior. This package ships TypeScript types and supports ESM only.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-ephemeral"],"cli":null},"imports":["import ephemeral from 'rollup-plugin-ephemeral'","import { ephemeral } from 'rollup-plugin-ephemeral'","import type { RollupPluginEphemeralOptions } from 'rollup-plugin-ephemeral'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import ephemeral from 'rollup-plugin-ephemeral';\nimport { rollup } from 'rollup';\n\nconst bundle = await rollup({\n  input: 'entry.js',\n  plugins: [\n    ephemeral('entry.js', 'export const answer = 42;'),\n  ],\n});\nconst { output } = await bundle.generate({ format: 'es' });\nconsole.log(output[0].code);","lang":"typescript","description":"Shows basic usage: create a virtual module entry.js that exports a constant, then bundle with Rollup and output the generated code.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}