Skip to content

Commit

Permalink
feat(nuxt): polyfill idle callback utils (#21863)
Browse files Browse the repository at this point in the history
  • Loading branch information
logotip4ik committed Jul 20, 2023
1 parent 42284c9 commit bea5ec3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/nuxt/src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 3 additions & 1 deletion packages/nuxt/src/imports/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const appPreset = defineUnimportPreset({
'preloadPayload',
'isPrerendered',
'definePayloadReducer',
'definePayloadReviver'
'definePayloadReviver',
'requestIdleCallback',
'cancelIdleCallback'
]
})

Expand Down

0 comments on commit bea5ec3

Please sign in to comment.