olefredrik / FoundationPress

FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb
https://foundationpress.olefredrik.com
MIT License
2.71k stars 871 forks source link

JS code being revised #1383

Closed adambundy closed 5 years ago

adambundy commented 5 years ago

Does the JS processing in the build routine sometimes revise JS code? I have the following in a custom JS file: almComplete = function(alm){ console.log("ALM load is complete"); };

and it ends up in app.js as: almComplete = function almComplete(alm) { console.log("ALM load is complete"); };

Screen Shot 2019-05-02 at 3 19 21 PM
kLOsk commented 5 years ago

Yes, FP is using babel to transpile into old school JS.