From 603bd9ed10d7a0e201a166d0c3f8205dd982042c Mon Sep 17 00:00:00 2001 From: Emmanuel QUENTIN Date: Tue, 19 May 2015 17:25:31 +0200 Subject: [PATCH] Use findIndex polyfill & remove babel polyfills --- package.json | 1 + src/Collection.js | 2 +- src/FakeRest.js | 1 - src/Server.js | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7bfb5b8..263e3e2 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "author": "François Zaninotto ", "license": "MIT", "devDependencies": { + "array.prototype.findindex": "^1.0.0", "babel-core": "^5.4.3", "babel-loader": "^5.1.2", "babel-runtime": "^5.4.3", diff --git a/src/Collection.js b/src/Collection.js index bd0f70b..0aefdd3 100644 --- a/src/Collection.js +++ b/src/Collection.js @@ -1,4 +1,4 @@ -import 'babel-core/polyfill'; +import 'array.prototype.findindex'; function filterItems(items, filter) { if (typeof filter === 'function') { diff --git a/src/FakeRest.js b/src/FakeRest.js index dd36009..c64dc74 100644 --- a/src/FakeRest.js +++ b/src/FakeRest.js @@ -1,4 +1,3 @@ -import 'babel-core/polyfill'; import Server from 'Server'; import Collection from 'Collection'; diff --git a/src/Server.js b/src/Server.js index 54d218c..28c4c42 100644 --- a/src/Server.js +++ b/src/Server.js @@ -1,4 +1,3 @@ -import 'babel-core/polyfill'; import Collection from 'Collection'; function parseQueryString(queryString) {