define(['exports'], function (exports) { 'use strict'; var browserSpecificThing; if ('ActiveXObject' in window) { browserSpecificThing = "InternetExplorerThing"; } else { browserSpecificThing = "DecentBrowserThing"; } function foo() {} var browserStuff = (Object.freeze || Object)({ browserSpecificThing: browserSpecificThing, foo: foo }); console.log(browserSpecificThing); exports.B = browserStuff; });