Steve Gill created CB-9036:
------------------------------

             Summary: plugin JS gets copied multiple times into cordova.js 
during multiple runs of cordova prepare --browserify
                 Key: CB-9036
                 URL: https://issues.apache.org/jira/browse/CB-9036
             Project: Apache Cordova
          Issue Type: Sub-task
          Components: CordovaJS
    Affects Versions: Master
            Reporter: Steve Gill
            Assignee: Steve Gill


Reported by Dan Polivy on the list.

"When I run 'cordova prepare -browserify', all I see is the original plugin JS 
files (in /plugins/<name>/www/) end up with the following appended to them 
(note, each time you prepare, it continues to append another iteration):

window.navigator = window.navigator || {};
window.navigator.camera = window.navigator.camera || {};

require('cordova/builder').assignOrWrapInDeprecateGetter(window.navigator, 
'camera', module.exports);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to