I would have expected this to replace the variables, not merge them. With the 
current implementation we cannot remove variables. Merging would still be 
doable, if a little verbose:
```js
const oldVars = pkgHelper.getPluginVariables('cordova-plugin-foo')
pkgHelper.addPlugin('cordova-plugin-foo', Object.assign({}, oldVars, newVars))
```
I couldn't tell whether we have to merge often. If so, we should probably 
provide an option for that.

[ Full content available at: https://github.com/apache/cordova-common/pull/34 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to