Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
transparent: 'Magento_Payment/transparent'
transparent: 'Magento_Payment/js/transparent',
'Magento_Payment/transparent': 'Magento_Payment/js/transparent'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Captcha/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
captcha: 'Magento_Captcha/captcha'
captcha: 'Magento_Captcha/js/captcha',
'Magento_Captcha/captcha': 'Magento_Captcha/js/captcha'
}
}
};
8 changes: 5 additions & 3 deletions app/code/Magento/Customer/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ var config = {
map: {
'*': {
checkoutBalance: 'Magento_Customer/js/checkout-balance',
address: 'Magento_Customer/address',
changeEmailPassword: 'Magento_Customer/change-email-password',
address: 'Magento_Customer/js/address',
changeEmailPassword: 'Magento_Customer/js/change-email-password',
passwordStrengthIndicator: 'Magento_Customer/js/password-strength-indicator',
zxcvbn: 'Magento_Customer/js/zxcvbn',
addressValidation: 'Magento_Customer/js/addressValidation'
addressValidation: 'Magento_Customer/js/addressValidation',
'Magento_Customer/address': 'Magento_Customer/js/address',
'Magento_Customer/change-email-password': 'Magento_Customer/js/change-email-password'
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
downloadable: 'Magento_Downloadable/downloadable'
downloadable: 'Magento_Downloadable/js/downloadable',
'Magento_Downloadable/downloadable': 'Magento_Downloadable/js/downloadable'
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
var config = {
map: {
'*': {
giftOptions: 'Magento_GiftMessage/gift-options',
extraOptions: 'Magento_GiftMessage/extra-options'
giftOptions: 'Magento_GiftMessage/js/gift-options',
extraOptions: 'Magento_GiftMessage/js/extra-options',
'Magento_GiftMessage/gift-options': 'Magento_GiftMessage/js/gift-options',
'Magento_GiftMessage/extra-options': 'Magento_GiftMessage/js/extra-options'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Payment/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
creditCardType: 'Magento_Payment/cc-type'
creditCardType: 'Magento_Payment/js/cc-type',
'Magento_Payment/cc-type': 'Magento_Payment/js/cc-type'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Paypal/view/base/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
transparent: 'Magento_Payment/transparent'
transparent: 'Magento_Payment/js/transparent',
'Magento_Payment/transparent': 'Magento_Payment/js/transparent'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Paypal/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
orderReview: 'Magento_Paypal/order-review',
orderReview: 'Magento_Paypal/js/order-review',
'Magento_Paypal/order-review': 'Magento_Paypal/js/order-review',
paypalCheckout: 'Magento_Paypal/js/paypal-checkout'
}
},
Expand Down
6 changes: 4 additions & 2 deletions app/code/Magento/Sales/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
var config = {
map: {
'*': {
giftMessage: 'Magento_Sales/gift-message',
ordersReturns: 'Magento_Sales/orders-returns'
giftMessage: 'Magento_Sales/js/gift-message',
ordersReturns: 'Magento_Sales/js/orders-returns',
'Magento_Sales/gift-message': 'Magento_Sales/js/gift-message',
'Magento_Sales/orders-returns': 'Magento_Sales/js/orders-returns'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Search/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
quickSearch: 'Magento_Search/form-mini'
quickSearch: 'Magento_Search/js/form-mini',
'Magento_Search/form-mini': 'Magento_Search/js/form-mini'
}
}
};
12 changes: 12 additions & 0 deletions app/code/Magento/SendFriend/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

var config = {
map: {
'*': {
'Magento_SendFriend/back-event': 'Magento_SendFriend/js/back-event'
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<script type="text/x-magento-init">
{
"a[role='back']": {
"Magento_SendFriend/back-event": {}
"Magento_SendFriend/js/back-event": {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to create mapping between old and new path in requirejs-config.js file in Magento_SendFriend module

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied changes as per our slack conversion.

}
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ var config = {
map: {
'*': {
editTrigger: 'mage/edit-trigger',
addClass: 'Magento_Translation/add-class'
addClass: 'Magento_Translation/js/add-class',
'Magento_Translation/add-class': 'Magento_Translation/js/add-class'
}
},
deps: [
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/Weee/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
'taxToggle': 'Magento_Weee/tax-toggle'
'taxToggle': 'Magento_Weee/js/tax-toggle',
'Magento_Weee/tax-toggle': 'Magento_Weee/js/tax-toggle'
}
}
};