Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
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