browserify / browserify/bundle-collapser

problems with socket.io-client

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
191
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Hey,
once I start using bundle-collapser, it seems as if `var io = require('socket.io-client')` doesn't get resolved correctly. In my case it gets assigned `530` by bundle-collapser, but when running the app it throws the error `Uncaught TypeError: io is not a function`. Maybe because of the `.` in the module name?
It's unfortunate, because bundle-collapser saves me ~40kB :)

Thank you!

edit: browserify `11.0.0`, bundle-collapser `1.2.1`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.