No loader configured for ".wasm" files

I’m running into an issue when trying to import a NodeJS library that has WASM file imports. The serverless function (when running netlify dev) throws an error like this:

No loader is configured for ".wasm" files:

Normally, on the client side, I have asyncWebAssembly set to true in the Webpack 5 config, but not sure if and/or how this is possible on the functions side.

Any help would be greatly appreciated!

Thought I’d post this here for others if they run into it:

I just had to add the library as an external_node_module within my netlify.toml. Exmaple:

[functions]
    external_node_modules = ["wasm-lib"]

Hi, @cjkoepke. Thank you for taking the time to loop back here with the solution. Much appreciated!