diff --git a/package.json b/package.json index bb1f9956..658aa42d 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,7 @@ "yaml-js": "^0.2.3" }, "peerDependencies": { - "core-js": "^2.6.5", + "core-js": "^3.1.4", "mobx": "^4.2.0 || ^5.0.0", "react": "^16.8.4", "react-dom": "^16.8.4", diff --git a/src/services/SearchWorker.worker.ts b/src/services/SearchWorker.worker.ts index 0b68feaa..3bd41576 100644 --- a/src/services/SearchWorker.worker.ts +++ b/src/services/SearchWorker.worker.ts @@ -2,7 +2,7 @@ import * as lunr from 'lunr'; try { // tslint:disable-next-line - require('core-js/es6/promise'); // bundle into worker + require('core-js/es/promise'); // bundle into worker } catch (_) { // nope }