forked from mystiq/hydrogen-web
don't include corejs promise polyfill anymore
This commit is contained in:
parent
e3581c8260
commit
6d003f9565
3 changed files with 5 additions and 4 deletions
|
@ -221,7 +221,11 @@ async function buildJsLegacy(inputFile, outputName, extraFile, polyfillFile) {
|
||||||
{
|
{
|
||||||
useBuiltIns: "entry",
|
useBuiltIns: "entry",
|
||||||
corejs: "3",
|
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"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
|
@ -15,8 +15,6 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// polyfills needed for IE11
|
// polyfills needed for IE11
|
||||||
|
|
||||||
// TODO: don't include a polyfill for promises as we already provide one
|
|
||||||
import "core-js/stable";
|
import "core-js/stable";
|
||||||
import "regenerator-runtime/runtime";
|
import "regenerator-runtime/runtime";
|
||||||
import "mdn-polyfills/Element.prototype.closest";
|
import "mdn-polyfills/Element.prototype.closest";
|
||||||
|
|
|
@ -18,7 +18,6 @@ limitations under the License.
|
||||||
// polyfills needed for IE11
|
// polyfills needed for IE11
|
||||||
// just enough to run olm, have promises and async/await
|
// just enough to run olm, have promises and async/await
|
||||||
import "regenerator-runtime/runtime";
|
import "regenerator-runtime/runtime";
|
||||||
import "core-js/modules/es.promise";
|
|
||||||
import "core-js/modules/es.math.imul";
|
import "core-js/modules/es.math.imul";
|
||||||
import "core-js/modules/es.math.clz32";
|
import "core-js/modules/es.math.clz32";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue