rollup-plugin-sandbox
v0.1.0-alpha.1
Published
Rollup plugin for isolating scripts
Downloads
3
Readme
rollup-plugin-sandbox
[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'
}
}
})
],
}
];