capacitor
capacitor copied to clipboard
modernize tsconfig, export ESM code
ESM code doesn't work when import statements don't contain the full file path, extension included. Rollup was re-transpiling it in the 2nd step, so that was fixing it up and the CJS code that Node.js package actually exported worked fine.
The ESM code wasn't being exported in @capacitor/core because Node.js doesn't read "module", it only reads "main" and "exports".