I
I
Illia T2020-07-07 15:48:09
JavaScript
Illia T, 2020-07-07 15:48:09

Why doesn't ES6+ -> ES5 compile?

On the screen is a fragment of my package.json. I'm trying to compile the main.js file from dist / js to app / js with the npm run build command

. As a result, the file is stupidly copied without compiling. Isn't the simplest compilation from 6 to 5 set by default? Can Babel just copy the file?!
5f046edf122bc787145953.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Didenko, 2020-07-07
@Dasslier

No, you didn't specify that the file should go through babel-loader

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question