capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

modernize tsconfig, export ESM code

Open dynst opened this issue 1 month ago • 0 comments

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".

dynst avatar Nov 18 '25 05:11 dynst