mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
chore: migrate from @nuxt/ufo to ufo
This commit is contained in:
parent
9681a8937d
commit
7529d65d75
@ -10,7 +10,7 @@
|
|||||||
"index.d.ts"
|
"index.d.ts"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/ufo": "^0.5.2",
|
"ufo": "^0.5.2",
|
||||||
"@nuxt/utils": "2.14.12",
|
"@nuxt/utils": "2.14.12",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"create-require": "^1.1.1",
|
"create-require": "^1.1.1",
|
||||||
|
@ -5,7 +5,7 @@ import defu from 'defu'
|
|||||||
import consola from 'consola'
|
import consola from 'consola'
|
||||||
import destr from 'destr'
|
import destr from 'destr'
|
||||||
import { TARGETS, MODES, guardDir, isNonEmptyString, isPureObject, isUrl, getMainModule, getPKG } from '@nuxt/utils'
|
import { TARGETS, MODES, guardDir, isNonEmptyString, isPureObject, isUrl, getMainModule, getPKG } from '@nuxt/utils'
|
||||||
import { joinURL, normalizeURL, withTrailingSlash } from '@nuxt/ufo'
|
import { joinURL, normalizeURL, withTrailingSlash } from 'ufo'
|
||||||
import { defaultNuxtConfigFile, getDefaultNuxtConfig } from './config'
|
import { defaultNuxtConfigFile, getDefaultNuxtConfig } from './config'
|
||||||
|
|
||||||
export function getNuxtConfig (_options) {
|
export function getNuxtConfig (_options) {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/ufo": "^0.5.2",
|
"ufo": "^0.5.2",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"create-require": "^1.1.1",
|
"create-require": "^1.1.1",
|
||||||
"fs-extra": "^9.0.1",
|
"fs-extra": "^9.0.1",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { get } from 'lodash'
|
import { get } from 'lodash'
|
||||||
import consola from 'consola'
|
import consola from 'consola'
|
||||||
import { normalizeURL, withTrailingSlash, withoutTrailingSlash } from '@nuxt/ufo'
|
import { normalizeURL, withTrailingSlash, withoutTrailingSlash } from 'ufo'
|
||||||
import { r } from './resolve'
|
import { r } from './resolve'
|
||||||
|
|
||||||
const routeChildren = function (route) {
|
const routeChildren = function (route) {
|
||||||
|
@ -2,7 +2,7 @@ export default {
|
|||||||
build: true,
|
build: true,
|
||||||
ignoreUnused: [
|
ignoreUnused: [
|
||||||
// used in vue-app
|
// used in vue-app
|
||||||
'@nuxt/ufo',
|
'ufo',
|
||||||
'node-fetch',
|
'node-fetch',
|
||||||
'unfetch',
|
'unfetch',
|
||||||
'vue',
|
'vue',
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"index.d.ts"
|
"index.d.ts"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/ufo": "^0.5.2",
|
"ufo": "^0.5.2",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
"unfetch": "^4.2.0",
|
"unfetch": "^4.2.0",
|
||||||
"vue": "^2.6.12",
|
"vue": "^2.6.12",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { parsePath, withoutTrailingSlash } from '@nuxt/ufo'
|
import { parsePath, withoutTrailingSlash } from 'ufo'
|
||||||
<% utilsImports = [
|
<% utilsImports = [
|
||||||
...(features.asyncData || features.fetch) ? [
|
...(features.asyncData || features.fetch) ? [
|
||||||
'getMatchedComponentsInstances',
|
'getMatchedComponentsInstances',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
import { normalizeURL, decode } from '@nuxt/ufo'
|
import { normalizeURL, decode } from 'ufo'
|
||||||
import { interopDefault } from './utils'<%= isTest ? '// eslint-disable-line no-unused-vars' : '' %>
|
import { interopDefault } from './utils'<%= isTest ? '// eslint-disable-line no-unused-vars' : '' %>
|
||||||
import scrollBehavior from './router.scrollBehavior.js'
|
import scrollBehavior from './router.scrollBehavior.js'
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { stringify } from 'querystring'
|
import { stringify } from 'querystring'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { normalizeURL } from '@nuxt/ufo'
|
import { normalizeURL } from 'ufo'
|
||||||
<% if (fetch.server) { %>import fetch from 'node-fetch'<% } %>
|
<% if (fetch.server) { %>import fetch from 'node-fetch'<% } %>
|
||||||
<% if (features.middleware) { %>import middleware from './middleware.js'<% } %>
|
<% if (features.middleware) { %>import middleware from './middleware.js'<% } %>
|
||||||
import {
|
import {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { normalizeURL } from '@nuxt/ufo'
|
import { normalizeURL } from 'ufo'
|
||||||
|
|
||||||
// window.{{globals.loadedCallback}} hook
|
// window.{{globals.loadedCallback}} hook
|
||||||
// Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading)
|
// Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading)
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/devalue": "^1.2.4",
|
"@nuxt/devalue": "^1.2.4",
|
||||||
"@nuxt/ufo": "^0.5.2",
|
"ufo": "^0.5.2",
|
||||||
"@nuxt/utils": "2.14.12",
|
"@nuxt/utils": "2.14.12",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
"fs-extra": "^9.0.1",
|
"fs-extra": "^9.0.1",
|
||||||
|
@ -3,7 +3,7 @@ import fs from 'fs-extra'
|
|||||||
import consola from 'consola'
|
import consola from 'consola'
|
||||||
import { template } from 'lodash'
|
import { template } from 'lodash'
|
||||||
import { TARGETS, isModernRequest, urlJoin, waitFor } from '@nuxt/utils'
|
import { TARGETS, isModernRequest, urlJoin, waitFor } from '@nuxt/utils'
|
||||||
import { normalizeURL } from '@nuxt/ufo'
|
import { normalizeURL } from 'ufo'
|
||||||
|
|
||||||
import SPARenderer from './renderers/spa'
|
import SPARenderer from './renderers/spa'
|
||||||
import SSRRenderer from './renderers/ssr'
|
import SSRRenderer from './renderers/ssr'
|
||||||
|
@ -4,7 +4,7 @@ import { format } from 'util'
|
|||||||
import fs from 'fs-extra'
|
import fs from 'fs-extra'
|
||||||
import consola from 'consola'
|
import consola from 'consola'
|
||||||
import { TARGETS, urlJoin } from '@nuxt/utils'
|
import { TARGETS, urlJoin } from '@nuxt/utils'
|
||||||
import { parsePath, withoutTrailingSlash } from '@nuxt/ufo'
|
import { parsePath, withoutTrailingSlash } from 'ufo'
|
||||||
import devalue from '@nuxt/devalue'
|
import devalue from '@nuxt/devalue'
|
||||||
import { createBundleRenderer } from 'vue-server-renderer'
|
import { createBundleRenderer } from 'vue-server-renderer'
|
||||||
import BaseRenderer from './base'
|
import BaseRenderer from './base'
|
||||||
|
Loading…
Reference in New Issue
Block a user