The way the exports are setup, neither a static nor a dynamic module import works in the browser.
import { unzip } from './unzipit.min.js'
fails with error: Uncaught (in promise) SyntaxError: ambiguous indirect export: unzip
and
mod = await import('./unzipit.min.js')
returns a module without any methods.
Created a version of unzip.js that takes out all the 'exports' and 'factory' related code and ends with the line
export { unzip,unzipRaw,setOptions }
and that works fine.
The way the exports are setup, neither a static nor a dynamic module import works in the browser.
fails with error: Uncaught (in promise) SyntaxError: ambiguous indirect export: unzip
and
returns a module without any methods.
Created a version of unzip.js that takes out all the 'exports' and 'factory' related code and ends with the line
export { unzip,unzipRaw,setOptions }
and that works fine.