cpal icon indicating copy to clipboard operation
cpal copied to clipboard

Fix wasm-beep example on Windows by upgrading to Webpack 5

Open danwilhelm opened this issue 2 years ago • 0 comments

Problem: The wasm-beep example fails to run on Windows, giving the error "digital envelope routines unsupported".

Solution: Upgrading Webpack from 3.* to 5.* resolved the error.

Note: This PR requires the "syncWebAssembly" option. The latest Wasm spec recommends "asyncWebAssembly" instead, but the Rust code would have to be updated to use this.

Testing: Successfully tested npm install/npm run/npm run build on Windows and Mac.

I also updated the Wiki here: https://github.com/RustAudio/cpal/wiki/Setting-up-a-new-CPAL-WASM-project

danwilhelm avatar Jul 21 '22 22:07 danwilhelm