Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block variable is missing when bundled with browserify #6

Open
basham opened this issue Aug 24, 2019 · 0 comments
Open

block variable is missing when bundled with browserify #6

basham opened this issue Aug 24, 2019 · 0 comments

Comments

@basham
Copy link

basham commented Aug 24, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant