Converting ES6 to ES5 on the command line
I use the TypeScript compiler for this, since its output is more minimal than Babel's.
The following will transpile all
src/*.js files into a file
npm install typescript npx tsc src/*.js --target ES5 --allowJs --outFile build.js
The output will only transpile ES6 syntax. It will not include any polyfills for missing APIs.
Your development team has a full backlog of feature requests, chores and refactoring coupled with deadlines? We are familiar with that. With our "DevOps as a Service" offering, we support developer teams with infrastructure and operations expertise.