Try this,
- Add requirejs-config.js in the below path
app/code/Vendor/ModuleName/view/adminhtml/requirejs-config.js
then add the below code to it
var config = {
map: {
'*': {
'Magento_Bundle/js/components/bundle-user-defined-checkbox':
'Vendor_ModuleName/js/bundle-user-defined-checkbox'
}
}
};
Vendor_ModuleName - is your module name which is in registration.php
then copy the file from below path
/vendor/magento/module-bundle/view/adminhtml/web/js/components/bundle-user-defined-checkbox.js
and paste it in below path and make your changes there
app/code/Vendor/ModuleName/view/adminhtml/web/js/bundle-user-defined-checkbox.js
then run the below commands to see your changes
rm -rf pub/static/frontend
php bin/magento setup:upgrade
php bin/magento s:s:d -f
php bin/magento cache:flush
then see your changes in frontend
Hope this helps .