FIX: When using in an AMD module with RequireJS using a namespace,

it does not get packed correctly, because r.js optimizer matches
the exact line containing 'function' as a string. (See r.js@26506)
This commit is contained in:
Bendeguz 2019-03-19 10:57:36 +01:00
parent 732cf5834e
commit 97dc89ae03

View File

@ -1083,7 +1083,7 @@
exports.UAParser = UAParser; exports.UAParser = UAParser;
} else { } else {
// requirejs env (optional) // requirejs env (optional)
if (typeof(define) === FUNC_TYPE && define.amd) { if (typeof(define) === 'function' && define.amd) {
define(function () { define(function () {
return UAParser; return UAParser;
}); });