cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimir-kotikov <...@git.apache.org>
Subject [GitHub] cordova-lib pull request: CB-9436 Removes `require-tr` bundle tran...
Date Tue, 04 Aug 2015 22:43:33 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message