Github user vladimir-kotikov commented on the pull request:

    https://github.com/apache/cordova-lib/pull/275#issuecomment-127782310
  
    > Wondering why you had to add require('codrdova/init') to the bundle? 
MSOpenTech@5105161#diff-28a16640f3807e6ee2300ea7ce8c2f1dR196. How was that 
getting added previously?
    
    Previously this was being added by 
`cordova-js/tasks/lib/bundle-browserify.js` as `cordova/bootstrap` module. The 
problem is when you adding plugin modules into bundle after bootstrap is added, 
they only get loaded _after_ cordova initialization and `deviceready` event. 
The only way i found to fix this, is to add `bootstrap` as the last file in the 
bundle.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to