H
H
helloitsme2021-04-04 13:56:36
JavaScript
helloitsme, 2021-04-04 13:56:36

Why doesn't allSettled work in IE11 when building a project with babel + webpack?

Good afternoon.

One of the plugins from node_modules uses allSettled. When I run webpack-dev-server in IE11 I get the error unsupported method AllSettled... I run

the project like this:
"start": "webpack-dev-server --host=0.0.0.0"

babelconfig.js:

...
 [
      '@babel/preset-env',
      {
        corejs: { version: 3 },
        useBuiltIns: 'usage',
        targets: {
          ie: '11',
        },
      },
    ],
...


If you collect through
"build:prod": "webpack --mode=production"then everything is ok.

Please tell me how to process this case through webpack-dev-server for local work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question