Skip to content

Commit

Permalink
Build: add console polyfill to prevent Ruby console errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Jan 16, 2015
1 parent 954bc2a commit b8d6da2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions lib/distribution.js
Expand Up @@ -2,6 +2,9 @@
* browserify distribution
*/

// for compatibility with console-less engines (eg, ruby)
require('console-polyfill');

(function () {
if (!this.window) this.window = this;
module.exports = require('../index');
Expand Down
11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -29,14 +29,15 @@
"read-input": "^0.1.0"
},
"devDependencies": {
"browserify": "^5.9.1",
"chai": "~1.9.0",
"coffee-script": "~1.7.1",
"sinon": "~1.8.2",
"mocha": "~1.17.1",
"jsdom": "~0.10.1",
"supertest": "~0.9.0",
"console-polyfill": "^0.1.2",
"express": "~3.4.8",
"browserify": "^5.9.1"
"jsdom": "~0.10.1",
"mocha": "~1.17.1",
"sinon": "~1.8.2",
"supertest": "~0.9.0"
},
"bin": {
"styledown": "./bin/styledown"
Expand Down

0 comments on commit b8d6da2

Please sign in to comment.