Commit df3135fb authored by Randall Leeds's avatar Randall Leeds

Remove unnecessary polyfills from production

Function.prototype.bind is supported in every browser for a long time.
It's only needed because, oddly, PhantomJS 1.8 doesn't support it.

The window.URL constructor is supported in IE10+ and every other major
browser for a while now. It's also not supported in PhantomJS 1.8,
though. The application currently doesn't work on IE < 10 anyway so
let's just remove this for now.
parent d78d7f01
......@@ -26,18 +26,20 @@ module.exports = function(config) {
'../../../node_modules/angular-route/angular-route.js',
'../../../node_modules/angular-sanitize/angular-sanitize.js',
'../../../node_modules/ng-tags-input/build/ng-tags-input.min.js',
'../../../node_modules/es6-promise/dist/es6-promise.js',
'vendor/angular-bootstrap.js',
'vendor/annotator.js',
'vendor/katex.js',
'vendor/polyfills/bind.js',
'vendor/polyfills/url.js',
// Test deps
'../../../node_modules/angular-mocks/angular-mocks.js',
'../../templates/client/*.html',
'test/bootstrap.js',
// These are needed until PhantomJS 2.0
'../../../node_modules/es6-promise/dist/es6-promise.js',
'test/polyfills/bind.js',
'test/polyfills/url.js',
// Tests
'**/*-test.coffee',
'**/*-test.js'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment