mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +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"
|
||||
],
|
||||
"dependencies": {
|
||||
"@nuxt/ufo": "^0.5.2",
|
||||
"ufo": "^0.5.2",
|
||||
"@nuxt/utils": "2.14.12",
|
||||
"consola": "^2.15.0",
|
||||
"create-require": "^1.1.1",
|
||||
|
@ -5,7 +5,7 @@ import defu from 'defu'
|
||||
import consola from 'consola'
|
||||
import destr from 'destr'
|
||||
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'
|
||||
|
||||
export function getNuxtConfig (_options) {
|
||||
|
@ -8,7 +8,7 @@
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"@nuxt/ufo": "^0.5.2",
|
||||
"ufo": "^0.5.2",
|
||||
"consola": "^2.15.0",
|
||||
"create-require": "^1.1.1",
|
||||
"fs-extra": "^9.0.1",
|
||||
|
@ -1,7 +1,7 @@
|
||||
import path from 'path'
|
||||
import { get } from 'lodash'
|
||||
import consola from 'consola'
|
||||
import { normalizeURL, withTrailingSlash, withoutTrailingSlash } from '@nuxt/ufo'
|
||||
import { normalizeURL, withTrailingSlash, withoutTrailingSlash } from 'ufo'
|
||||
import { r } from './resolve'
|
||||
|
||||
const routeChildren = function (route) {
|
||||
|
@ -2,7 +2,7 @@ export default {
|
||||
build: true,
|
||||
ignoreUnused: [
|
||||
// used in vue-app
|
||||
'@nuxt/ufo',
|
||||
'ufo',
|
||||
'node-fetch',
|
||||
'unfetch',
|
||||
'vue',
|
||||
|
@ -13,7 +13,7 @@
|
||||
"index.d.ts"
|
||||
],
|
||||
"dependencies": {
|
||||
"@nuxt/ufo": "^0.5.2",
|
||||
"ufo": "^0.5.2",
|
||||
"node-fetch": "^2.6.1",
|
||||
"unfetch": "^4.2.0",
|
||||
"vue": "^2.6.12",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Vue from 'vue'
|
||||
import { parsePath, withoutTrailingSlash } from '@nuxt/ufo'
|
||||
import { parsePath, withoutTrailingSlash } from 'ufo'
|
||||
<% utilsImports = [
|
||||
...(features.asyncData || features.fetch) ? [
|
||||
'getMatchedComponentsInstances',
|
||||
|
@ -1,6 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
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 scrollBehavior from './router.scrollBehavior.js'
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { stringify } from 'querystring'
|
||||
import Vue from 'vue'
|
||||
import { normalizeURL } from '@nuxt/ufo'
|
||||
import { normalizeURL } from 'ufo'
|
||||
<% if (fetch.server) { %>import fetch from 'node-fetch'<% } %>
|
||||
<% if (features.middleware) { %>import middleware from './middleware.js'<% } %>
|
||||
import {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Vue from 'vue'
|
||||
import { normalizeURL } from '@nuxt/ufo'
|
||||
import { normalizeURL } from 'ufo'
|
||||
|
||||
// window.{{globals.loadedCallback}} hook
|
||||
// Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading)
|
||||
|
@ -9,7 +9,7 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@nuxt/devalue": "^1.2.4",
|
||||
"@nuxt/ufo": "^0.5.2",
|
||||
"ufo": "^0.5.2",
|
||||
"@nuxt/utils": "2.14.12",
|
||||
"consola": "^2.15.0",
|
||||
"fs-extra": "^9.0.1",
|
||||
|
@ -3,7 +3,7 @@ import fs from 'fs-extra'
|
||||
import consola from 'consola'
|
||||
import { template } from 'lodash'
|
||||
import { TARGETS, isModernRequest, urlJoin, waitFor } from '@nuxt/utils'
|
||||
import { normalizeURL } from '@nuxt/ufo'
|
||||
import { normalizeURL } from 'ufo'
|
||||
|
||||
import SPARenderer from './renderers/spa'
|
||||
import SSRRenderer from './renderers/ssr'
|
||||
|
@ -4,7 +4,7 @@ import { format } from 'util'
|
||||
import fs from 'fs-extra'
|
||||
import consola from 'consola'
|
||||
import { TARGETS, urlJoin } from '@nuxt/utils'
|
||||
import { parsePath, withoutTrailingSlash } from '@nuxt/ufo'
|
||||
import { parsePath, withoutTrailingSlash } from 'ufo'
|
||||
import devalue from '@nuxt/devalue'
|
||||
import { createBundleRenderer } from 'vue-server-renderer'
|
||||
import BaseRenderer from './base'
|
||||
|
Loading…
Reference in New Issue
Block a user