mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(bridge): move @vueuse/head
to dev dependencies (#4218)
This commit is contained in:
parent
529712d498
commit
3186841c9c
@ -27,7 +27,6 @@
|
|||||||
"@nuxt/ui-templates": "npm:@nuxt/ui-templates-edge@latest",
|
"@nuxt/ui-templates": "npm:@nuxt/ui-templates-edge@latest",
|
||||||
"@vitejs/plugin-legacy": "^1.8.0",
|
"@vitejs/plugin-legacy": "^1.8.0",
|
||||||
"@vue/composition-api": "^1.4.9",
|
"@vue/composition-api": "^1.4.9",
|
||||||
"@vueuse/head": "^0.7.5",
|
|
||||||
"acorn": "^8.7.0",
|
"acorn": "^8.7.0",
|
||||||
"cookie-es": "^0.5.0",
|
"cookie-es": "^0.5.0",
|
||||||
"defu": "^6.0.0",
|
"defu": "^6.0.0",
|
||||||
@ -73,6 +72,7 @@
|
|||||||
"@types/fs-extra": "^9.0.13",
|
"@types/fs-extra": "^9.0.13",
|
||||||
"@types/hash-sum": "^1.0.0",
|
"@types/hash-sum": "^1.0.0",
|
||||||
"@types/node-fetch": "^3.0.2",
|
"@types/node-fetch": "^3.0.2",
|
||||||
|
"@vueuse/head": "^0.7.5",
|
||||||
"nuxt": "^2",
|
"nuxt": "^2",
|
||||||
"unbuild": "latest",
|
"unbuild": "latest",
|
||||||
"vue": "^2",
|
"vue": "^2",
|
||||||
|
@ -16,7 +16,7 @@ export const setupMeta = async (opts: SetupMetaOptions) => {
|
|||||||
if (opts.needsExplicitEnable) {
|
if (opts.needsExplicitEnable) {
|
||||||
const metaPath = addTemplate({
|
const metaPath = addTemplate({
|
||||||
filename: 'meta.mjs',
|
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
|
nuxt.options.alias['#head'] = metaPath.dst
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user