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
3 months agoFrancine
3 months agoViva
3 months agoBenton
4 months agoAngelica
4 months agoRose
4 months agoAmber
4 months agoTatum
4 months agoKimi
5 months agoAllene
5 months agoJohnson
5 months agoPansy
5 months agoLouvenia
5 months agoLore
5 months agoMatt
11 months agoColene
11 months agoWayne
10 months agoReynalda
10 months agoElmer
10 months agoXuan
11 months agoLinsey
11 months agoLauryn
11 months agoLuisa
11 months agoShayne
11 months agoLelia
12 months agoTayna
11 months agoKenneth
11 months agoStarr
11 months agoArmanda
11 months agoRaina
11 months agoPeggie
11 months agoAudry
11 months agoMatt
12 months agoShayne
12 months agoMatt
12 months ago