We ran into problems when users tried to use mapbox.js, which uses browserify, on a site with requirejs. Since define was defined, nothing was added to exports.
With this change, if both define and exports are present it will load it with both systems.
We ran into problems when users tried to use mapbox.js, which uses browserify, on a site with requirejs. Since
define
was defined, nothing was added toexports
.With this change, if both
define
andexports
are present it will load it with both systems.