@PovilasKorop@jeffrey_way Yes, have done the exact same thing. With AI it's now very easy to create specs and then let AI write native apps for both platforms. Works like a charm.
@enzoinnocenzi@christophrumpel It is a solution, but in bigger projects you end up importing it many times in different components instead of just importing it once in your app.js. To me that doesn't feel like an improvement.
@christophrumpel@enzoinnocenzi then you would omit the window.moment = moment there and just include the
import moment from 'moment' in every file you use the library, but I don't think that is a nice solution
@christophrumpel cool, you can replace that by:
import moment from 'moment';
window.moment = moment
as also done in the pull request you referenced from laravelio, where they did:
import axios from 'axios';
window.axios = axios;
@jeffrey_way@inertiajs Awesome post, can totally identify with this. One question, now you have upgraded to Vue3 did you also start using Typescript, or still using good old js?