Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8801 Browserify Master Issue
  3. CB-9036

plugin JS gets copied multiple times into cordova.js during multiple runs of cordova prepare --browserify

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: cordova-js
    • Labels:
      None

      Description

      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);

        Attachments

          Activity

            People

            • Assignee:
              stevegill Steve Gill
              Reporter:
              stevegill Steve Gill
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: