perfBar icon indicating copy to clipboard operation
perfBar copied to clipboard

Allow module to work for require in nodejs

Open msecret opened this issue 10 years ago • 0 comments

It would be helpful to be able to require this module into other modules so it can be used with browserify. This is my usecase:

var perfBar = require('perfbar');

perfBar.init({
...

This JS file is being bundled by browserify. I think the way to make this work would be to add the correct file to the main property in package.json, but am unsure if that should be the file in lib or build.

msecret avatar Jun 04 '15 20:06 msecret