Skip to content

Commit b1f4e82

Browse files
committed
fix: fix plugin type
1 parent 81be85b commit b1f4e82

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/runtime/plugin.server.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ import { hash } from 'ohash'
22
import { defineNuxtPlugin } from '#imports'
33
import { configHash } from '#build/nuxt-style-extractor-config-hash.js'
44

5+
declare module '#app' {
6+
interface NuxtApp {
7+
8+
}
9+
}
510
export default defineNuxtPlugin({
611
name: 'style-extractor',
7-
parallel: true,
12+
enforce: 'post',
813
setup(nuxt) {
914
nuxt.hook('app:rendered', async (nuxtCtx) => {
1015
const html = nuxtCtx.renderResult?.html || ''

0 commit comments

Comments
 (0)