diff --git a/packages/nuxt/src/app/index.ts b/packages/nuxt/src/app/index.ts index 70ea4e391c..bd23bc8e74 100644 --- a/packages/nuxt/src/app/index.ts +++ b/packages/nuxt/src/app/index.ts @@ -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' diff --git a/packages/nuxt/src/imports/presets.ts b/packages/nuxt/src/imports/presets.ts index 7e3d741f58..8625302b8e 100644 --- a/packages/nuxt/src/imports/presets.ts +++ b/packages/nuxt/src/imports/presets.ts @@ -60,7 +60,9 @@ const appPreset = defineUnimportPreset({ 'preloadPayload', 'isPrerendered', 'definePayloadReducer', - 'definePayloadReviver' + 'definePayloadReviver', + 'requestIdleCallback', + 'cancelIdleCallback' ] })