Elgg 6.x.x How to extend "elgg.js"

Hi, in elgg 5.x.x, I used to extend 'elgg.js' this way in elgg-plugin.php


    'view_extensions' => [
        'elgg.js' => [
            'xxx/xxx/context.js' => []
        ]
    ]

How to do it in elgg 6.x.x

Regards,

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking