The error description:
Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
How to reproduce?
Install node@18 and run npx tsup
Workaround
Downgrade to node@17