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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master
    • None
    • cordova-js
    • None

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: