Today, when loading dygraphs from NPM via browserify you need to include:
```javascript
var Dygraph = require('dygraphs/dygraph-combined.js');
```
Being able to do this:
```javascript
var Dygraph = require('dygraphs');
```
Is preferable.
Use "dev" combined version
Minification should be handled by each app's build system.
Export Dygraph
Fix broken tests when module is not defined
console.warn("Unable to add default annotation CSS rule; display may be off.");
};
+if (typeof exports === "object" && typeof module !== "undefined") {
+ module.exports = Dygraph;
+}
+
return Dygraph;
})();
"name": "dygraphs",
"version": "1.1.0",
"description": "dygraphs is a fast, flexible open source JavaScript charting library.",
- "main": "dygraph.js",
+ "main": "dygraph-combined-dev.js",
"directories": {
"doc": "docs",
"test": "tests"