Skip to content

use of unzipit in browser context #25

Description

@rbakker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions