Description
Currently, GoogleAnalyticsLoader is hardcoded as the default value for the externalScripts parameter in initialize(). Unlike loggingService, analyticsService, and authService, there is no way to configure externalScripts via env.config.js or the runtime config API.
This means consumers cannot control which external scripts are loaded without passing the option directly to initialize(), which is not always feasible depending on how the MFE is set up.
The externalScripts option should follow the same config resolution pattern as the other services: check getConfig().externalScripts first, then fall back to the parameter default.
TODO
Description
Currently,
GoogleAnalyticsLoaderis hardcoded as the default value for theexternalScriptsparameter ininitialize(). UnlikeloggingService,analyticsService, andauthService, there is no way to configureexternalScriptsviaenv.config.jsor the runtime config API.This means consumers cannot control which external scripts are loaded without passing the option directly to
initialize(), which is not always feasible depending on how the MFE is set up.The
externalScriptsoption should follow the same config resolution pattern as the other services: checkgetConfig().externalScriptsfirst, then fall back to the parameter default.TODO