An Adobe Commerce developer needs to alias URLs and third party libraries inside a require js-config.js file. Which configuration would the developer use?
A)

B)

C)

To alias URLs and third party libraries inside a requirejs-config.js file, the developer should use the paths configuration option. This option allows the developer to map module names to URLs or paths relative to the baseUrl. For example:
var config = { paths: { 'jquery': 'https://code.jquery.com/jquery-3.6.0.min', 'custom': 'Vendor_Module/js/custom' } };
This will map the module name 'jquery' to the URL of the jQuery library and the module name 'custom' to the path of the custom module. The developer can then use these module names in other modules or files without specifying the full URL or path.
Option A is not correct because it uses the shim configuration option, which is used to define dependencies and exports for non-AMD modules, not to alias URLs or paths. Option C is not correct because it uses the map configuration option, which is used to map module names to other module names for specific contexts, not to alias URLs or paths. Reference: [RequireJS configuration], [RequireJS paths]
Solange
4 months agoFrancine
5 months agoViva
5 months agoBenton
5 months agoAngelica
5 months agoRose
6 months agoAmber
6 months agoTatum
6 months agoKimi
6 months agoAllene
6 months agoJohnson
6 months agoPansy
6 months agoLouvenia
6 months agoLore
6 months agoMatt
1 year agoColene
1 year agoWayne
11 months agoReynalda
11 months agoElmer
12 months agoXuan
1 year agoLinsey
1 year agoLauryn
1 year agoLuisa
1 year agoShayne
1 year agoLelia
1 year agoTayna
1 year agoKenneth
1 year agoStarr
1 year agoArmanda
1 year agoRaina
1 year agoPeggie
1 year agoAudry
1 year agoMatt
1 year agoShayne
1 year agoMatt
1 year ago