Skip to content

block variable is missing when bundled with browserify #6

@basham

Description

@basham

I've compiled random-access-idb directly and indirectly (via random-access-web) with Browserify. In both cases, there is an error, stating that block is undefined. I believe it's happening because the line var block in write() is removed during the bundling process. This is likely because the variable isn't assigned, and therefore the bundler removes the line. I suggest updating it to this:

var block = null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions