Skip to content

Commit 5d523fe

Browse files
fix: browser to use UMD
1 parent ec9c1b5 commit 5d523fe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@
113113
},
114114
"types": "dist/src",
115115
"unpkg": "dist/browser.js",
116-
"version": "2.0.0-beta.10"
116+
"version": "2.0.0-beta.11"
117117
}

rollup.config.browser.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ export default {
3434
output: [
3535
{
3636
file,
37-
format: 'iife',
37+
format: 'umd',
3838
sourcemap: true,
3939
globals: {
40-
'gpu.js': `(typeof window.gpu !== undefined) ? window.gpu : null`,
40+
'gpu.js': `GPU`,
4141
},
4242
name,
43-
footer: '\nif(typeof window!==undefined){window.brain=brain}',
4443
},
4544
],
4645
};

0 commit comments

Comments
 (0)