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

add a transform for plugins that use cordova.define

    XMLWordPrintableJSON

    Details

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

      Description

      Reported by Dan Polivy

      cordova.define() doesn't seem to be defined in the browserify model. Is this a legacy plugin definition approach? I couldn't find any documentation about it, but I don't see it being used in any of the current Apache plugins. I'm running into it with the barcodescanner plugin (https://github.com/wildabeast/BarcodeScanner/blob/master/www/barcodescanner.js#L132); commenting it out seems to work fine. Does this need to be translated in the browserify code?

      We should see if we can solve this when we run our transforms https://github.com/apache/cordova-js/blob/master/tasks/lib/require-tr.js

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: