I'm trying to bundle my application with webpack which has a dependency on a third party library which has require("something.wasm") in it. The result of the require is passed to a script block which loads it. In the example of the library I'm trying to bundle I see that require("") returns the path the wasm file can be loaded from. However on my machine after webpack packages it, I get an object with { "default": "the path to the wasm file", __esModule: true } in it. It seems that the library expects the require("") call to return the string the wasm file can be loaded from, however a module is returned? Anyone know how I can fix this?