chore: suppress dynamic import warning during build

pull/114/head
Evan You 4 years ago
parent 6b3fbe31a3
commit afc4489ae1

@ -48,7 +48,7 @@ export function createApp() {
if (inBrowser) { if (inBrowser) {
isInitialPageLoad = false isInitialPageLoad = false
// in browser: native dynamic import // in browser: native dynamic import
return import(pagePath).then((page) => { return import(/*@vite-ignore*/ pagePath).then((page) => {
if (page.__pageData) { if (page.__pageData) {
pageDataRef.value = readonly(JSON.parse(page.__pageData)) pageDataRef.value = readonly(JSON.parse(page.__pageData))
} }

Loading…
Cancel
Save