[ https://issues.apache.org/jira/browse/CB-9037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14554878#comment-14554878 ]
Steve Gill commented on CB-9037: -------------------------------- TBH, this seems like a issue with the plugin itself. Authors should update their plugins by removing cordova.define. Not needed in plugins. > add a transform for plugins that use cordova.define > --------------------------------------------------- > > Key: CB-9037 > URL: https://issues.apache.org/jira/browse/CB-9037 > Project: Apache Cordova > Issue Type: Sub-task > Components: CordovaJS > Affects Versions: Master > Reporter: Steve Gill > Assignee: Steve Gill > > Reported by [~dpolivy] > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org