argon2-browser icon indicating copy to clipboard operation
argon2-browser copied to clipboard

Fix runtime not properly unloading on webpack

Open quexten opened this issue 1 year ago • 0 comments

On Webpack, the cache expects exports on a required module to stay the same. The dist/argon2.js module deletes the export when calling unload runtime. On Webpack builds, if you unload the runtime, and then load it again by doing a hash, the require never resolves.

This PR fixes this behavior by deleting the module form the cache entirely, when unloading the runtime.

quexten avatar Mar 24 '23 03:03 quexten