Skip to content

Commit 4a9fc40

Browse files
committed
fix: soft-dependency on Unhead v1.10.1
1 parent 28346e2 commit 4a9fc40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/module.ts

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export default defineNuxtModule<ModuleOptions>({
107107
if (!unheadVersion || lt(unheadVersion, '1.10.0')) {
108108
logger.error(`Nuxt Scripts requires Unhead >= 1.10.0, you are using v${unheadVersion}. Please run \`nuxi upgrade --clean\` to upgrade...`)
109109
}
110+
else if (lt(unheadVersion, '1.10.1')) {
111+
logger.warn(`Nuxt Scripts recommends Unhead >= 1.10.1, you are using v${unheadVersion}. Please run \`nuxi upgrade --clean\` to upgrade...`)
112+
}
110113
}
111114
// allow augmenting the options
112115
nuxt.options.alias['#nuxt-scripts-validator'] = resolve(`./runtime/validation/${(nuxt.options.dev || nuxt.options._prepare) ? 'valibot' : 'mock'}`)

0 commit comments

Comments
 (0)