Skip to content

Conversation

@dynst
Copy link

@dynst dynst commented Nov 18, 2025

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 dynst force-pushed the esm branch 2 times, most recently from fbce148 to 481c061 Compare November 18, 2025 05:21
@dynst dynst changed the title modernize tsconfig, fix broken ESM code modernize tsconfig, fix up ESM Nov 18, 2025
@dynst dynst changed the title modernize tsconfig, fix up ESM modernize tsconfig, export ESM code Nov 18, 2025
riderx pushed a commit to Cap-go/capacitor-plus that referenced this pull request Nov 28, 2025
riderx pushed a commit to Cap-go/capacitor-plus that referenced this pull request Nov 28, 2025
riderx pushed a commit to Cap-go/capacitor-plus that referenced this pull request Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant