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
#2 has been fixed by using Webpack's ignore plugin, but the distribution code still includes the entire bip39 dependency's API (e.g. generateMnemonic). This code is unused, but is not being caught by tree-shaking since the npm source of bip39 is JS rather than TypeScript.
The dependency graph of the build output should be analyzed and optimized to remove unused code. This could be accomplished by targeting a Github commit sha for some dependencies like bip39 to use the TS source instead of the npm published version, or extracting only the methods used, inlining them, and relying on the extended dependencies instead (in this particular case, pbkdf2).
The text was updated successfully, but these errors were encountered:
#2 has been fixed by using Webpack's ignore plugin, but the distribution code still includes the entire
bip39
dependency's API (e.g.generateMnemonic
). This code is unused, but is not being caught by tree-shaking since the npm source ofbip39
is JS rather than TypeScript.The dependency graph of the build output should be analyzed and optimized to remove unused code. This could be accomplished by targeting a Github commit sha for some dependencies like
bip39
to use the TS source instead of the npm published version, or extracting only the methods used, inlining them, and relying on the extended dependencies instead (in this particular case,pbkdf2
).The text was updated successfully, but these errors were encountered: