Skip to content

packager assume that every method named require is module loader function #5988

@gorangajic

Description

@gorangajic

I have tried to use primus.io with react-native and they are using Primus.require method wrapper so same lib can work in browser and in node.js. Packager throw error that was not able to find stream module but they have try/catch there with a fallback when stream module is not found. So packager should not preload that script and throw error

Unable to resolve module stream

There is a workaround and I have already created pull request there so it's not that urgent primus/primus#432

sorry if there is same issue already but was not able to find any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions