Skip to content

Commit

Permalink
fix: make reporter runnable on IE11 again
Browse files Browse the repository at this point in the history
The latest socket.io-client uses arrow function which doesn't work on IE11.
  • Loading branch information
3cp committed Feb 18, 2020
1 parent 25db6c8 commit 0929c9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build-reporter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const fs = require('fs');
const browserify = require('browserify');
const es6ify = require("es6ify");
browserify('./reporter.js')
.add(es6ify.runtime)
.transform(es6ify)
.bundle()
.pipe(fs.createWriteStream('./dist/reporter.js'));
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"postversion": "git push && git push --tags && npm publish",
"pretest": "npm run lint && npm run build",
"test": "tape \"test/**/*.spec.js\"",
"build": "browserify reporter.js -o dist/reporter.js",
"build": "node build-reporter.js",
"prepare": "npm run build"
},
"repository": {
Expand All @@ -43,6 +43,7 @@
"cat": "^0.2.0",
"chai": "^4.2.0",
"concat-stream": "^2.0.0",
"es6ify": "^1.6.0",
"eslint": "^6.8.0",
"jasmine-core": "^3.5.0",
"mocha": "^7.0.1",
Expand Down

0 comments on commit 0929c9d

Please sign in to comment.