cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dase...@apache.org
Subject cordova-lib git commit: CB-12383 Fix cordova_plugins metadata definition Define parent object first
Date Thu, 26 Jan 2017 09:32:29 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 4a3ded473 -> 9f704a70b


CB-12383 Fix cordova_plugins metadata definition
Define parent object first


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/9f704a70
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/9f704a70
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/9f704a70

Branch: refs/heads/master
Commit: 9f704a70b1376f712c7287d32587b33e68ff8f70
Parents: 4a3ded4
Author: daserge <v-seshak@microsoft.com>
Authored: Tue Jan 24 12:52:44 2017 +0300
Committer: daserge <v-seshak@microsoft.com>
Committed: Thu Jan 26 12:31:49 2017 +0300

----------------------------------------------------------------------
 cordova-lib/src/plugman/browserify.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/9f704a70/cordova-lib/src/plugman/browserify.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/browserify.js b/cordova-lib/src/plugman/browserify.js
index 39adabb..9cd5f77 100644
--- a/cordova-lib/src/plugman/browserify.js
+++ b/cordova-lib/src/plugman/browserify.js
@@ -157,8 +157,8 @@ module.exports = function doBrowserify (project, platformApi, pluginInfoProvider
         // instead of generating intermediate file on FS
         var cordova_plugins = new Readable();
         cordova_plugins.push(
-            'module.exports.metadata = ' + JSON.stringify(pluginMetadata, null, 4) + ';\n'
+
-            'module.exports = ' + JSON.stringify(modulesMetadata, null, 4) + ';\n', 'utf8');
+            'module.exports = ' + JSON.stringify(modulesMetadata, null, 4) + ';\n' +
+            'module.exports.metadata = ' + JSON.stringify(pluginMetadata, null, 4) + ';\n',
'utf8');
         cordova_plugins.push(null);
 
         var bootstrap = new Readable();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message