Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11311

cordova-plugin-wkwebview-engine not working with --browserify flag

    XMLWordPrintableJSON

Details

    Description

      The code below for replace the exec bridge is not compatible with browserify

      // unregister the old bridge
      cordova.define.remove('cordova/exec');
      // redefine bridge to our new bridge
      cordova.define("cordova/exec", function(require, exports, module) {
        module.exports = execProxy;
      });
      

      After using browserify flag, all scripts for www will be packed into cordova.js as single file. At the same time, the `cordova.define` become undefined.

      TypeError: undefined is not an object (evaluating 'cordova.define.remove')
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            yyfearth@gmail.com Wilson Yang
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: