don't include corejs promise polyfill anymore

This commit is contained in:
Bruno Windels 2020-09-28 15:28:22 +02:00
parent e3581c8260
commit 6d003f9565
3 changed files with 5 additions and 4 deletions

View File

@ -221,7 +221,11 @@ async function buildJsLegacy(inputFile, outputName, extraFile, polyfillFile) {
{
useBuiltIns: "entry",
corejs: "3",
targets: "IE 11"
targets: "IE 11",
// we provide our own promise polyfill (es6-promise)
// with support for synchronous flushing of
// the queue for idb where needed
exclude: ["es.promise", "es.promise.all-settled", "es.promise.finally"]
}
]
]

View File

@ -15,8 +15,6 @@ limitations under the License.
*/
// polyfills needed for IE11
// TODO: don't include a polyfill for promises as we already provide one
import "core-js/stable";
import "regenerator-runtime/runtime";
import "mdn-polyfills/Element.prototype.closest";

View File

@ -18,7 +18,6 @@ limitations under the License.
// polyfills needed for IE11
// just enough to run olm, have promises and async/await
import "regenerator-runtime/runtime";
import "core-js/modules/es.promise";
import "core-js/modules/es.math.imul";
import "core-js/modules/es.math.clz32";