convert ResizeSensor to browserify/node module.exports syntax