Browserify generates a package identifier for require statements if a packaged module is in the same project and defined as external at the same time, this makes the require() fail with unknown package identifiers because it's bundled in a different file with a different identifier.
Setting bundleExternal to false fixes the problem.
Browserify generates a package identifier for require statements if a packaged module is in the same project and defined as external at the same time, this makes the
require()
fail with unknown package identifiers because it's bundled in a different file with a different identifier.Setting
bundleExternal
tofalse
fixes the problem.