# rollup-plugin-memory **Repository Path**: mirrors_TrySound/rollup-plugin-memory ## Basic Information - **Project Name**: rollup-plugin-memory - **Description**: Deprecated: use https://github.com/rollup/rollup-plugin-virtual instead - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rollup-plugin-memory [![Build Status][ci-img]][ci] > Deprecated: use [rollup-plugin-virtual](https://github.com/rollup/rollup-plugin-virtual) instead [ci-img]: https://travis-ci.org/TrySound/rollup-plugin-memory.svg [ci]: https://travis-ci.org/TrySound/rollup-plugin-memory Load entry from memory ## Install ```sh npm i rollup-plugin-memory -D ``` ## Usage ```js import { rollup } from 'rollup'; import memory from 'rollup-plugin-memory'; rollup({ entry: { path: 'main.js', contents: 'console.log("some code");' }, plugins: [ memory() ] }); ``` `path` is a string like normal entry. `contents` is a string or Buffer with preloaded content. # License MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)