Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Apr 12, 2023
1 parent 60b147b commit f975f9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/nuxt-windicss/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ export default defineNuxtModule<ModuleOptions>({
// clearRequireCache(configFilePath)
configType = `./${relative(nuxtOptions.rootDir, configFilePath)}`
// Restart Nuxt if windi file updates (for modules using windicss:config hook)
// @ts-ignore nuxt2
// @ts-expect-error nuxt2
if (nuxt.options.dev && nuxt.options.watch)
// @ts-ignore nuxt2
// @ts-expect-error nuxt2
nuxt.options.watch.push(configFilePath)
}

Expand All @@ -174,9 +174,9 @@ export default defineNuxtModule<ModuleOptions>({
if (!filepath || !config)
return

// @ts-ignore nuxt2
// @ts-expect-error nuxt2
if (nuxt.options.dev && nuxt.options.watch)
// @ts-ignore nuxt2
// @ts-expect-error nuxt2
nuxt.options.watch.push(filepath)
// fix recursion
// delete config.plugins
Expand Down

0 comments on commit f975f9a

Please sign in to comment.