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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • cordova-js, cordova-lib
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: