@babel/plugin-syntax-dynamic-import

    1. "plugins": ["@babel/plugin-syntax-dynamic-import"]
    2. }
    1. require("@babel/core").transformSync("code", {
    2. plugins: ["@babel/plugin-syntax-dynamic-import"],
    3. });

    Currently, @babel/preset-env is unaware that using with Webpack relies on Promise internally. Environments which do not have builtin support for Promise, like Internet Explorer, will require both the promise and iterator polyfills be added manually.

    or

    1. // src/main.js
    2. import "core-js/modules/es.array.iterator";
    3. // ...

    or

    1. // src/main.js
    2. import "core-js/modules/es6.promise";
    3. import "core-js/modules/es6.array.iterator";
    4. // ...