K
K
KnightForce2017-09-29 13:02:52
JavaScript
KnightForce, 2017-09-29 13:02:52

Webpack + React + Babel. Support for new features in browsers?

I am using React.js.
Need Map and Set support.
Will Webpack (presets, etc.) suffice, or will Babel Polyfill and core-js still need to be included?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2017-09-29
@miraage

babel-preset-env , specify there those browsers that need to be supported.
It is also becoming fashionable now to support the modern version of downloading applications: https://philipwalton.com/articles/deploying-es2015...

V
Vahe, 2017-10-01
@vahe_2000

you need core-js

import 'core-js/es6/map';
import 'core-js/es6/set';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question