S
S
Sergey Rybakov2017-10-01 21:19:05
Node.js
Sergey Rybakov, 2017-10-01 21:19:05

Is it possible to use async/await without using babel?

Hello, I'm using Laravel 5.5, laravel-mix, axios, and vuejs 2.4.4. For assembly I use nodejs v8.6.0. I read somewhere that starting from version v7.0.0 it is possible to use async/await without pulling up babel. However, attempting to use this construct causes 'regeneratorRuntime is not defined'.
Does anyone know anything about this? Google didn't give an answer.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Coder321, 2017-10-01
@kyctarnik

Node supports async/await, but browsers don't.

L
lega, 2017-10-01
@lega

Currently supported by 68.71% of browsers*.
https://caniuse.com/#search=await

S
Sergey Rybakov, 2017-10-01
@kyctarnik

59d15273ab1e2873441872.png59d1527962dc3839112952.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question