Skip to content

require function without full commonjs leads to footguns #7663

@calvinmetcalf

Description

@calvinmetcalf

must like browserify and webpack react-native allows modularization via require, but unlike those other tools react-native does not provide the process global at all times (#7607), you can't require the built in node ones (browserify/commonjs-assert#21).

Some fixes

  • pull in those by default (via node-libs-browser)
  • give a better error message when one of those can't be found

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