[
https://issues.apache.org/jira/browse/CB-9436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14654487#comment-14654487
]
ASF GitHub Bot commented on CB-9436:
------------------------------------
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.
> Refactor browserify to get rid of `require-tr` transform
> --------------------------------------------------------
>
> Key: CB-9436
> URL: https://issues.apache.org/jira/browse/CB-9436
> Project: Apache Cordova
> Issue Type: Improvement
> Components: CordovaJS, CordovaLib
> Reporter: Vladimir Kotikov
> Assignee: Vladimir Kotikov
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]