rollup-plugin-memory

Load entry from memory

Use https://github.com/rollup/rollup-plugin-virtual instead
Last updated 2 years ago by trysound .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-memory 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (2 years ago)

3 Versions

  • 3.0.0 [deprecated]           ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |