Get the anonymous localized script from the document as object and write it to the window object.
Use it in combination with Assets.php#anonymous_localize_script or wpLocalizeScriptResources from @devowl-wp/deliver-anonymous-asset.
Assets.php#anonymous_localize_script
wpLocalizeScriptResources
@devowl-wp/deliver-anonymous-asset
const options = getAnonymousLocalizedScript(process.env.slug); Copy
const options = getAnonymousLocalizedScript(process.env.slug);
Get the anonymous localized script from the document as object and write it to the window object.
Use it in combination with
Assets.php#anonymous_localize_scriptorwpLocalizeScriptResourcesfrom@devowl-wp/deliver-anonymous-asset.