Sitelet https://github.com/browserify/bundle-collapser/issues/15
Skip to content

problems with socket.io-client #15

Description

@klaemo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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