Nuxt/test/fixtures/basic/plugins/chunk-error.ts

4 lines
129 B
TypeScript

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('app:chunkError', () => console.log('caught chunk load error'))
})