From 5d523fe241f5edddd220e19420dfcecab841b30c Mon Sep 17 00:00:00 2001 From: Robert Plummer Date: Wed, 30 Mar 2022 11:22:54 -0400 Subject: [PATCH] fix: browser to use UMD --- package.json | 2 +- rollup.config.browser.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 451957d6..2fa735ad 100644 --- a/package.json +++ b/package.json @@ -113,5 +113,5 @@ }, "types": "dist/src", "unpkg": "dist/browser.js", - "version": "2.0.0-beta.10" + "version": "2.0.0-beta.11" } diff --git a/rollup.config.browser.js b/rollup.config.browser.js index c446af32..9a49c254 100644 --- a/rollup.config.browser.js +++ b/rollup.config.browser.js @@ -34,13 +34,12 @@ export default { output: [ { file, - format: 'iife', + format: 'umd', sourcemap: true, globals: { - 'gpu.js': `(typeof window.gpu !== undefined) ? window.gpu : null`, + 'gpu.js': `GPU`, }, name, - footer: '\nif(typeof window!==undefined){window.brain=brain}', }, ], };