When bundled with Vite out of the box, @jridgewell/sourcemap-codec isn't functioning correctly or doesn't have the right build settings. I considered opening an issue upstream, but the project is unmaintained since April 2023 and the author is not responding to contributions. Result is:
magic-string.es.mjs?v=71e65a2c:1 Uncaught SyntaxError: The requested module 'node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js?v=71e65a2c' does not provide an export named 'encode' (at magic-string.es.mjs?v=71e65a2c:1:10)
```