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

project level plugins js files get modified on each prepare --browserify

    XMLWordPrintableJSON

    Details

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

      Description

      Related to CB-9036

      When you do cordova prepare --browserify, it modifies the plugin js files in cordovaproject/plugins/PLUGIN/www/.

      Each subsequent prepare, this file gets more added to it.
      Ex.

      window.CameraPopoverHandle = window.CameraPopoverHandle || {};

      require('cordova/builder').assignOrWrapInDeprecateGetter(window, 'CameraPopoverHandle', module.exports);window.CameraPopoverHandle = window.CameraPopoverHandle || {};

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

      I believe these files shouldn't be modified, or only modified temporarily when doing a cordova prepare --browserify. Fixing this would probably solve CB-9036

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: