F
Filamentβ€’2mo ago
Corey

Possible to manually bundle Filament's JavaScript assets instead of relying on @filamentScripts ?

We're working on a project where we need to support older mobile browsers (e.g iOS Safari 13) which don't support some modern JavaScript features (e.g null coalesce operator). How we're handling this with other assets is by building them with Vite and targeting an older version of ES via @vitejs/plugin-legacy, however Filament's JS assets are precompiled (targeting ES2020) and included directly. We're hoping there's a way to prevent Filament from including these precompiled assets so we can include them in our own asset pipeline and target our desired version of JavaScript, but this doesn't seem to be mentioned in the docs. Ideally we'd like to do it in the same way Livewire allows us to: https://livewire.laravel.com/docs/installation#manually-bundling-livewire-and-alpine If this is not possible, is there a way we can configure the version of ES which is used by esbuild in Filament's existing asset pipeline? Thank you in advance for any advice you can provide πŸ™
Laravel
Installation | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server