mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-13 00:03:10 +00:00
prevent loading the the fs module in the browser
while browserify uses an empty module for `fs` by default, webpack does not and will refuse to bundle fabric (previous versions of webpack did bundle it, but that was considered a bug in webpack which was recently fixed (webpack/webpack#411).
This commit is contained in:
parent
fbc9f21a1d
commit
7abe3fd70f
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
],
|
||||
"browser" : {
|
||||
"canvas" : false,
|
||||
"fs": false,
|
||||
"jsdom": false,
|
||||
"xmldom": false
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue