Skip to content

Commit

Permalink
fix: soft-dependency on Unhead v1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 2, 2024
1 parent 28346e2 commit 4a9fc40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export default defineNuxtModule<ModuleOptions>({
if (!unheadVersion || lt(unheadVersion, '1.10.0')) {
logger.error(`Nuxt Scripts requires Unhead >= 1.10.0, you are using v${unheadVersion}. Please run \`nuxi upgrade --clean\` to upgrade...`)
}
else if (lt(unheadVersion, '1.10.1')) {
logger.warn(`Nuxt Scripts recommends Unhead >= 1.10.1, you are using v${unheadVersion}. Please run \`nuxi upgrade --clean\` to upgrade...`)
}
}
// allow augmenting the options
nuxt.options.alias['#nuxt-scripts-validator'] = resolve(`./runtime/validation/${(nuxt.options.dev || nuxt.options._prepare) ? 'valibot' : 'mock'}`)
Expand Down

0 comments on commit 4a9fc40

Please sign in to comment.