Convert Filament::registerScripts

Hi, how do I convert the following piece of code from v2 to v3 FilamentAsset? I want to use the compiled code at public/build/assets/app-fdfe8a8c.js (for example) instead of the source in resources/js/app.js

Filament::serving(function () {
    Filament::registerScripts([
        app(Vite::class)('resources/js/app.js')
    ], true);
});
Was this page helpful?