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

Class Fields not supported by babel in bookemarklet

rwadkins opened this issue · comments

I wrote a bookmarklet using ES6 Classes and used class fields in my code. babylon is throwing an error, because, it seems that class fields aren't supported in babel preset env.
bablylonError.txt

@rwadkins I removed Babel with v3.0.0. LMK if dropping it entirely and relying the browser’s native support works for you!