E
E
egsi2018-10-03 15:30:03
Building projects
egsi, 2018-10-03 15:30:03

How to include gulp-babel?

When building js files, you need to connect the es-6 handler for gulp. I include gulp-babel. After specifying the scripts, I added .pipe(babel()). When assembling scripts, the task simply stops. What could be the reason for this and how to solve the problem? It is possible that there are other solutions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
heidega, 2018-10-06
@heidega

Make sure you follow the directions exactly : install the latest beta version of gulp-babel along with the Babel 7 core, create a .babelrc file, and so on. Babel is a picky thing, two different versions of its plugins won't work together. From my own experience I will say that I suffered with him for a very long time, until I decided to "return to the roots" and did not get to read the above operating instructions. As a last resort, there are other plugins like gulp-autopolyfiller . If you are completely desperate, try your luck with them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question