1. rollup-plugin-memory
Load entry from memory
rollup-plugin-memory
Package: rollup-plugin-memory
Created by: TrySound
Last modified: Sun, 26 Jun 2022 14:00:09 GMT
Version: 3.0.0
License: MIT
Downloads: 49,376
Repository: https://github.com/TrySound/rollup-plugin-memory

Install

npm install rollup-plugin-memory
yarn add rollup-plugin-memory

rollup-plugin-memory Build Status

Deprecated: use rollup-plugin-virtual instead

Load entry from memory

Install

 npm i rollup-plugin-memory -D

Usage

 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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code