javascriptjquerygulpbabeljstraceur

Is it possible to transpile jQuery to Vanilla JS?


I use traceur / babel to transpile ES6 to ES5 but is it possible to use an gulp plugin to transpile jQuery to plain javascript? Thanks for Your answers :)


Solution

  • You can open the jquery.js and look for the relevant functions you want to convert to native javascript.

    Copy it into a new helper.js, include it instead of jquery.js (or jquery.min.js) and use this functions. Voila, native js-functions.