WordPressify supports ES6+ JavaScript through Babel. You can use modern syntax like arrow functions, destructuring, and modules, and Babel compiles it down for browser compatibility.
Place your JavaScript files in:
src/assets/js/WordPressify watches this directory for changes and bundles all files into a single footer-bundle.js, which is loaded in the footer of every page.
The bundling is configured in gulpfile.js. During development, source maps are generated so you can debug your original source in the browser's DevTools. In production builds, the output is minified.
To control which scripts are loaded in the header vs footer, or to change Babel settings, see the External Libraries page and the gulpfile.js in your project root.