
var originalGoogExportPath = goog.exportPath_;

goog.exportPath_ = function(name, opt_object, opt_objectToExportTo) {
  // must keep the export to global for things like (goog/exportSymbol js/React ...)
  originalGoogExportPath(name, opt_object, opt_objectToExportTo);
  // goog.module.declareLegacyNamespace() otherwise only exports to global but we need it on the $CLJS object
  if (goog.isInModuleLoader_()) {
    originalGoogExportPath(name, opt_object, $CLJS);
  }
}

goog.provide = function(name) {
  return originalGoogExportPath(name, undefined, $CLJS);
};

goog.require = function(name) {
  return goog.getObjectByName(name, $CLJS);
};

// goog.define exports to global by default
// we need it on CLJS_ENV
goog.define = function(name, defaultValue) {
  var value = defaultValue;

  if (Object.prototype.hasOwnProperty.call(CLOSURE_DEFINES, name)) {
    value = CLOSURE_DEFINES[name];
  }

  originalGoogExportPath(name, value, $CLJS);
};

@@ -643,307 +643,4 @@
 %0A%7D;%0A
-%0A// goog.define exports to global by default%0A// we need it on CLJS_ENV%0Agoog.define = function(name, defaultValue) %7B%0A  var value = defaultValue;%0A%0A  if (Object.prototype.hasOwnProperty.call(CLOSURE_DEFINES, name)) %7B%0A    value = CLOSURE_DEFINES%5Bname%5D;%0A  %7D%0A%0A  originalGoogExportPath(name, value, $CLJS);%0A%7D;%0A

remove goog.define override for :npm-module