webrecorder / warcio.js

JS Streaming WARC IO optimized for Browser and Node
MIT License
30 stars 6 forks source link

running example in browser leads to import error #67

Open msramalho opened 7 months ago

msramalho commented 7 months ago

running the first example in the browser leads to an import error:

Uncaught TypeError: Failed to resolve module specifier "hash-wasm". 
Relative references must start with either "/", "./", or "../".

am I doing something wrong or is it an issue with https://cdn.jsdelivr.net/npm/warcio/dist/index.all.js?

emma-sg commented 2 weeks ago

From what I can tell, this (and #69) are due to some sort of misconfiguration of tsup, it seems to not be bundling to CJS correctly? Not sure if there's some settings for transforming imported modules or not