Closed henriquemattos closed 2 years ago
Thank you for taking the time to report this. Unfortunately I cannot see how this is related to the Sinon project itself or anything we can do on our side.
As you have witnessed, bundling is inherently fraught with complexity, with ESM, transpilation, different runtimes, etc all coming into play.
The module you have to take manual steps to resolve is not even part of our bundle! Try looking at the file and search for the module yourself: https://unpkg.com/browse/sinon@14.0.0/pkg/sinon-esm.js
Since this is an artefact added by Webpack I cannot see how we are to do anything with it?
Describe the bug Can't bundle tests via Karma using Webpack as sinon-ejm.js failed to resolve 'process/browser'.
Solution
Added fallback to webpack configuration in karma.conf.js
Expected behavior I would expect the module to be resolved without a custom fallback from the client.
Screenshots If applicable, add screenshots to help explain your problem.
Context (please complete the following information):