feat(nuxt): polyfill idle callback utils (#21863)

This commit is contained in:
Bogdan Kostyuk 2023-07-19 18:30:12 +03:00 committed by GitHub
parent 3828a6e939
commit 22cccb0ab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ export * from './nuxt'
export * from './composables/index'
export * from './components/index'
export * from './config'
export * from './compat/idle-callback'
// eslint-disable-next-line import/no-restricted-paths
export type { PageMeta } from '../pages/runtime/index'

View File

@ -60,7 +60,9 @@ const appPreset = defineUnimportPreset({
'preloadPayload',
'isPrerendered',
'definePayloadReducer',
'definePayloadReviver'
'definePayloadReviver',
'requestIdleCallback',
'cancelIdleCallback'
]
})