mrcoles / bookmarklet

A server-side bookmarklet compiler with greasemonkey userscript-like metadata options and the power of babel and uglify

Home Page:https://www.npmjs.com/package/bookmarklet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReferenceError: regeneratorRuntime is not defined

vaaski opened this issue · comments

Hi, when I try to use this it says that the regeneratorRuntime is not defined.
A quick google shows that it's missing the Babel polyfill.

adding it via @script does not work.
only loading it prior to executing the bookmarklet works.

maybe make Babel toggleable with a command line flag?

Hey @vaaski are you using an await in your code? Do you have a code sample?

I honestly forgot where I wanted to use this haha, I guess it's been a couple of months.
If you want I can try to reproduce it again, let me know.