fix(nuxt): export useRouteAnnouncer (#27562)

This commit is contained in:
Okuto Oyama 2024-06-13 01:46:17 +09:00 committed by GitHub
parent fbb66c43be
commit 1321c56483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View File

@ -37,3 +37,4 @@ export { reloadNuxtApp } from './chunk'
export { useRequestURL } from './url' export { useRequestURL } from './url'
export { usePreviewMode } from './preview' export { usePreviewMode } from './preview'
export { useId } from './id' export { useId } from './id'
export { useRouteAnnouncer } from './route-announcer'

View File

@ -109,6 +109,10 @@ const granularAppPresets: InlinePreset[] = [
imports: ['useId'], imports: ['useId'],
from: '#app/composables/id', from: '#app/composables/id',
}, },
{
imports: ['useRouteAnnouncer'],
from: '#app/composables/route-announcer',
},
] ]
export const scriptsStubsPreset = { export const scriptsStubsPreset = {

View File

@ -53,6 +53,7 @@ describe('app config', () => {
describe('composables', () => { describe('composables', () => {
it('are all tested', () => { it('are all tested', () => {
const testedComposables: string[] = [ const testedComposables: string[] = [
'useRouteAnnouncer',
'clearNuxtData', 'clearNuxtData',
'refreshNuxtData', 'refreshNuxtData',
'useAsyncData', 'useAsyncData',