I want to rewrite method openVariableChooser
in variables js called somewhere in Editor magento. But i don't know how to do that without affect to other module
File variables location in Magento_Variable/variables.js
What i have done is define my custom js over original.
"paths": {
"Magento_Variable/variables": "My_Extension/js/custom_variables"
},