It would be nice for cordova-js to platform independent. While I have not had a closer look at the how and why of the current build strategy, here's an outline of what I imagine:
### Suggestion - Create a platform-independent build of `cordova-js` before publishing to npm and bundle it in the published package (it's *not* checked into git). My tool of choice for this would be `rollup` at the moment of writing. - Have platforms require `cordova-js` to include the core bundle in the App HTML. Any platform specific JS is handled in the platform but can make use of the provided core functionality ### Positive effects - `cordova-js` can be platform agnostic => easier to add new platforms - switch to modern build tooling (`rollup`) - Releasing a new version of `cordova-js` can be done independently - Updating of `cordova-js` in aplatform requires only `npm i cordova-js@latest` I don't have time to look into this right now, but I'd appreciate any feedback on this [ Full content available at: https://github.com/apache/cordova-js/issues/169 ] This message was relayed via gitbox.apache.org for [email protected]
