define(['mac/bitpacking'], function(bitpacking) {

  'use strict';
  
  return function(resource) {
    resource.getUnpackedData = function() {
      return bitpacking.unpackBits(this.data.buffer, this.data.byteOffset, this.data.byteLength);
    };
  };

});

define(['mac/bitpacking'], function(bitpacking) {

  'use strict';
  
  return function(item) {
    item.getUnpackedData = function() {
      return this.getBytes().then(function(bytes) {
        return bitpacking.unpackBits(bytes.buffer, bytes.byteOffset, bytes.byteLength);
      });
    };
  };

});

Change BITD to new loader format
Change BITD to new loader format