fix(cli): load default exports from JavaScript config
Load JavaScript Capacitor configuration correctly when Node returns a module namespace with a default export. Preserve ordinary CommonJS configuration loading. Regression tests exercise the real Node module loader and the built CLI configuration path.
Current-main integration
Current head: 5b3c3bf266fede0cdde2af052f2bd8bdd95009d9; integrated main 02e43f83f7e101f1773e9d33cd12e3c52e7d2c4b by a normal, conflict-free merge. All PR implementation/test files are byte-identical to the previous published head. The net PR remains limited to 2 file(s).
Validation
Fresh Linux Node 24.22.1 validation passes npm install (the repository deliberately disables lockfiles), the CLI production build, the complete CLI Jest suite (109 tests / 14 suites, no failures or skips), changed-file ESLint/Prettier, built CLI version smoke and a clean tracked-source check.
Native Android/iOS builds and macOS-only SwiftLint were not run. No native platform source is changed by this PR.
These local checks are separate from current-head upstream CI authorization and maintainer review.