serialize-javascript
serialize-javascript copied to clipboard
ReferenceError: _asyncToGenerator2 is not defined
before serialize code:
the reason is "async"?
how to solve it
Do you have any repro? I guess _asyncToGenerator2 is generated code by Babel not serialize-javascript. The serialize-javascript supports async functions as follows.
> serialize(async function(){})
'async function(){}'