M
M
MaksimLav2020-09-01 22:48:26
React
MaksimLav, 2020-09-01 22:48:26

How to configure create react app to compile code in production mode?

How is it possible to change the target JS version when building cra? It compiles by default in ES5, I would like to compile in ES7+.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex4answ, 2020-09-02
@alex4answ

execute eject (but this is a one-way operation) , then you can configure webpack as you like.
But I'm wondering why you need ES7 + in the build, what about polyfills and so on?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question