0.1.0-alpha.1 • Published 1 year ago

rollup-plugin-sandbox v0.1.0-alpha.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

rollup-plugin-sandbox

Build Status

EXPERIMENTAL A Rollup plugin for isolating scripts using Quarantiner.

Usage

$ npm i --save-dev rollup-plugin-sandbox

rollup.config.mjs

import sandbox from 'rollup-plugin-sandbox';
// ...

export default [
    {
        input: '.../input.ts',
        output: {
            // ...
        },
        plugins: [
            ...

            sandbox({
                globals: {
                    'myGlobal': {
                        type: 'function'
                    }
                }
            })
        ],
    }
];
0.1.0-alpha.1

1 year ago

0.1.0-alpha

1 year ago