cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Gill (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-9036) plugin JS gets copied multiple times into cordova.js during multiple runs of cordova prepare --browserify
Date Fri, 19 Jun 2015 21:52:00 GMT

     [ https://issues.apache.org/jira/browse/CB-9036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Steve Gill resolved CB-9036.
----------------------------
    Resolution: Fixed

> 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 [~dpolivy] 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message