mirror of
https://github.com/amark/gun.git
synced 2025-06-12 17:16:44 +00:00
Add basic compatibility with browserify and webpack
On the compile step, both window and module are defined. Gun prevents module exports by detecting the environment and tacking Gun onto the window object. This addition will check to see if it's a dual environment (like browserify or electron) and export to both window and module, preventing errors in your build step.
This commit is contained in:
parent
2540f32774
commit
f6f7310a50
Loading…
x
Reference in New Issue
Block a user