Skip to content

Commit

Permalink
fix(nuxt): should work when autoImports disabled (#2220)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng committed Feb 20, 2023
1 parent b2c0259 commit 5821758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineNuxtModule<UnocssNuxtOptions>({
'import \'uno.css\'',
isNuxt2()
? 'export default () => {}'
: 'export default defineNuxtPlugin(() => {})',
: 'import { defineNuxtPlugin } from \'#imports\'; export default defineNuxtPlugin(() => {})',
]
if (options.preflight)
lines.unshift('import \'@unocss/reset/tailwind.css\'')
Expand Down

0 comments on commit 5821758

Please sign in to comment.