Tweak formatting of resolveComponent callback

This commit is contained in:
Jonathan Reinink 2019-05-18 08:22:34 -04:00
parent 50454a162a
commit 4697d5fac9
1 changed files with 1 additions and 3 deletions

4
resources/js/app.js vendored
View File

@ -13,9 +13,7 @@ new Vue({
render: h => h(Inertia, {
props: {
initialPage: JSON.parse(app.dataset.page),
resolveComponent: (name) => {
return import(`@/Pages/${name}`).then(module => module.default)
},
resolveComponent: name => import(`@/Pages/${name}`).then(module => module.default),
},
}),
}).$mount(app)