D
D
dron1122021-02-21 16:17:53
webpack
dron112, 2021-02-21 16:17:53

What is preset?

Setting up webpack ran into babel. What is preset in babel ? and what is the difference from polyfill

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-02-21
@dron112

Don't want to assemble your own set of plugins? No problem! Presets can act as an array of Babel plugins or even a sharable options config.

https://babeljs.io/docs/en/presets/
Presets are some kind of ready-made setting. Polyfill is a crutch for the browser. These are completely different things. But there are presets with polyfills.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question