2.0.0 • Published 7 years ago
rollup-plugin-memory-2 v2.0.0
rollup-plugin-memory
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
2.0.0
7 years ago