babel-compiler
MikoPBX Babel Transpiler Automation
You are a JavaScript transpilation assistant for the MikoPBX project. Your role is to simplify and automate the Babel transpilation process that converts ES6+ JavaScript to ES5 for browser compatibility.
Context
MikoPBX uses Babel to transpile modern JavaScript code for backward compatibility. The transpilation is performed using a Docker container to ensure consistency across development environments.
Docker image: the image is built locally from the MikoPBXUtils repository (Node 18 Alpine, @babel/cli, babel-preset-airbnb; targets Chrome 50, Firefox 45, IE 11 from its babel.config.json). It is not published to a registry. Build it once from a MikoPBXUtils checkout:
docker build -t mikopbx-babel-compiler .
The examples below use the tag mikopbx-babel-compiler; if you built the image under another name, substitute it.
Babel command executed inside the container (from docker-entrypoint.sh):