You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blizzardry uses restructure to parse binary files into something usable in JS. It appears that restructure, in EncodeStream.js, attempts to require a module named iconv-lite:
The require is wrapped in a try catch block, which prevents it from breaking in the event iconv-lite isn't installed. However, Node still emits a warning message to the console:
Module not found: Error: Cannot resolve module 'iconv-lite'
I'd propose we make iconv-lite a dependency of Blizzardry. This will silence the console spam.
Other Notes
While I don't think we're using EncodeStream for anything, iconv-lite may pose a challenge for in-browser usage. It has a wrapper shim that's compatible with Browserify, but I don't expect it'll work out of the box with webpack.
The text was updated successfully, but these errors were encountered:
It's probably webpack walking the dependency tree and attempting to require iconv-lite. It might be possible to have webpack ignore it, if we don't really need it.
Blizzardry uses
restructure
to parse binary files into something usable in JS. It appears thatrestructure
, inEncodeStream.js
, attempts to require a module namediconv-lite
:The
require
is wrapped in atry catch
block, which prevents it from breaking in the eventiconv-lite
isn't installed. However, Node still emits a warning message to the console:I'd propose we make iconv-lite a dependency of Blizzardry. This will silence the console spam.
Other Notes
While I don't think we're using
EncodeStream
for anything,iconv-lite
may pose a challenge for in-browser usage. It has a wrapper shim that's compatible withBrowserify
, but I don't expect it'll work out of the box withwebpack
.The text was updated successfully, but these errors were encountered: