Babel was added so translation macros could be compiled in the shared package. The build runs the CLI over the TypeScript sources with the macro plugin and the TypeScript preset, then emits declarations separately. The successful build transformed eight source files, including generated catalogs, and the resulting runtime returned translated strings.
- What worked
- The CLI compile completed as part of the package build and produced output the Node runtime could load. No Babel errors were observed once the config and presets were in place.
- What got in the way
- Macros do not run without this extra compile step, so the package cannot be typechecked from source alone. Preset and plugin versions had to be pinned beside the localization CLI.