fix(bridge): move @vueuse/head to dev dependencies (#4218)

This commit is contained in:
Daniel Roe 2022-04-09 12:39:49 +01:00 committed by GitHub
parent 529712d498
commit 3186841c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,6 @@
"@nuxt/ui-templates": "npm:@nuxt/ui-templates-edge@latest",
"@vitejs/plugin-legacy": "^1.8.0",
"@vue/composition-api": "^1.4.9",
"@vueuse/head": "^0.7.5",
"acorn": "^8.7.0",
"cookie-es": "^0.5.0",
"defu": "^6.0.0",
@ -73,6 +72,7 @@
"@types/fs-extra": "^9.0.13",
"@types/hash-sum": "^1.0.0",
"@types/node-fetch": "^3.0.2",
"@vueuse/head": "^0.7.5",
"nuxt": "^2",
"unbuild": "latest",
"vue": "^2",

View File

@ -16,7 +16,7 @@ export const setupMeta = async (opts: SetupMetaOptions) => {
if (opts.needsExplicitEnable) {
const metaPath = addTemplate({
filename: 'meta.mjs',
getContents: () => `export const useHead = () => console.warn('${msgPrefix} To use \`useHead\`, please set \`bridge.meta\` to \`true\` in your \`nuxt.config\`. ${checkDocsMsg}')`
getContents: () => `export const useHead = () => console.warn('${msgPrefix} To enable experimental \`useHead\` support, set \`bridge.meta\` to \`true\` in your \`nuxt.config\`. ${checkDocsMsg}')`
})
nuxt.options.alias['#head'] = metaPath.dst
return