diff --git a/README.md b/README.md
index 353bf9b..4b3c326 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,17 @@ Since parsing and executing are separated, execution with SandboxJS can be somet
npm install @nyariv/sandboxjs
```
+UMD build:
+
+```javascript
+
+
+```
+
## Usage
The following is the bare minimum of code for using SandboxJS. This assumes safe whilelisted defaults.
@@ -65,7 +76,7 @@ console.log(scopeB); // {b: 2}
console.log(scopeC); // {c: 3, d: 5, b: 6}
```
-You can set your own whilelisted prototypes and global properties like so (`alert` and `Node` are added to whitelist in the following code):
+You can set your own whitelisted prototypes and global properties like so (`alert` and `Node` are added to whitelist in the following code):
```javascript
const prototypeWhitelist = Sandbox.SAFE_PROTOTYPES;
diff --git a/rollup.config.mjs b/rollup.config.mjs
index e42064e..1771350 100644
--- a/rollup.config.mjs
+++ b/rollup.config.mjs
@@ -60,4 +60,25 @@ export default [
filesize()
]
},
+ {
+ input: 'src/Sandbox.ts',
+ output: {
+ file: 'dist/Sandbox.umd.min.js',
+ format: 'umd',
+ name: 'SandboxJS',
+ sourcemap: true,
+ },
+ plugins: [
+ typescript({
+ declaration: true,
+ declarationDir: './',
+ }),
+ resolve({ extensions }),
+ terser({
+ keep_fnames: /SandboxFunction/,
+ maxWorkers: 4,
+ }),
+ filesize(),
+ ],
+ },
]