You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steve Gill (JIRA)" <ji...@apache.org> on 2015/07/21 00:54:04 UTC

[jira] [Reopened] (CB-9036) plugin JS gets copied multiple times into cordova.js during multiple runs of cordova prepare --browserify

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

Steve Gill reopened CB-9036:
----------------------------

This method is not working for clobbers. The require statements don't have a proper reference to module.exports when being called. Need to rethink this solution

> 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