Skip to content

Commit

Permalink
fix: browser to use UMD
Browse files Browse the repository at this point in the history
  • Loading branch information
robertleeplummerjr committed Mar 30, 2022
1 parent ec9c1b5 commit 5d523fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@
},
"types": "dist/src",
"unpkg": "dist/browser.js",
"version": "2.0.0-beta.10"
"version": "2.0.0-beta.11"
}
5 changes: 2 additions & 3 deletions rollup.config.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
},
],
};

0 comments on commit 5d523fe

Please sign in to comment.