mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
chore(deps): upgrade unplugin (#6429)
This commit is contained in:
parent
deb542ba51
commit
57f9a51c18
@ -64,7 +64,7 @@
|
|||||||
"unctx": "^2.0.1",
|
"unctx": "^2.0.1",
|
||||||
"unenv": "^0.5.2",
|
"unenv": "^0.5.2",
|
||||||
"unimport": "^0.6.5",
|
"unimport": "^0.6.5",
|
||||||
"unplugin": "^0.8.1",
|
"unplugin": "^0.9.0",
|
||||||
"untyped": "^0.4.5",
|
"untyped": "^0.4.5",
|
||||||
"vue": "^3.2.37",
|
"vue": "^3.2.37",
|
||||||
"vue-bundle-renderer": "^0.4.1",
|
"vue-bundle-renderer": "^0.4.1",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { Nuxt, NuxtApp } from '@nuxt/schema'
|
import { Nuxt, NuxtApp } from '@nuxt/schema'
|
||||||
|
import { normalize } from 'pathe'
|
||||||
import { createTransformer } from 'unctx/transform'
|
import { createTransformer } from 'unctx/transform'
|
||||||
import { createUnplugin } from 'unplugin'
|
import { createUnplugin } from 'unplugin'
|
||||||
|
|
||||||
@ -14,6 +15,7 @@ export const UnctxTransformPlugin = (nuxt: Nuxt) => {
|
|||||||
name: 'unctx:transfrom',
|
name: 'unctx:transfrom',
|
||||||
enforce: 'post',
|
enforce: 'post',
|
||||||
transformInclude (id) {
|
transformInclude (id) {
|
||||||
|
id = normalize(id).replace(/\?.*$/, '')
|
||||||
return app?.plugins.some(i => i.src === id) || app?.middleware.some(m => m.path === id)
|
return app?.plugins.some(i => i.src === id) || app?.middleware.some(m => m.path === id)
|
||||||
},
|
},
|
||||||
transform (code, id) {
|
transform (code, id) {
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
"rollup": "^2.77.2",
|
"rollup": "^2.77.2",
|
||||||
"rollup-plugin-visualizer": "^5.7.1",
|
"rollup-plugin-visualizer": "^5.7.1",
|
||||||
"ufo": "^0.8.5",
|
"ufo": "^0.8.5",
|
||||||
"unplugin": "^0.8.1",
|
"unplugin": "^0.9.0",
|
||||||
"vite": "~3.0.4",
|
"vite": "~3.0.4",
|
||||||
"vite-node": "^0.21.0",
|
"vite-node": "^0.21.0",
|
||||||
"vite-plugin-checker": "^0.4.9",
|
"vite-plugin-checker": "^0.4.9",
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
"style-resources-loader": "^1.5.0",
|
"style-resources-loader": "^1.5.0",
|
||||||
"time-fix-plugin": "^2.0.7",
|
"time-fix-plugin": "^2.0.7",
|
||||||
"ufo": "^0.8.5",
|
"ufo": "^0.8.5",
|
||||||
"unplugin": "^0.8.1",
|
"unplugin": "^0.9.0",
|
||||||
"url-loader": "^4.1.1",
|
"url-loader": "^4.1.1",
|
||||||
"vue-bundle-renderer": "^0.4.1",
|
"vue-bundle-renderer": "^0.4.1",
|
||||||
"vue-loader": "^17.0.0",
|
"vue-loader": "^17.0.0",
|
||||||
|
32
yarn.lock
32
yarn.lock
@ -1888,7 +1888,7 @@ __metadata:
|
|||||||
rollup-plugin-visualizer: ^5.7.1
|
rollup-plugin-visualizer: ^5.7.1
|
||||||
ufo: ^0.8.5
|
ufo: ^0.8.5
|
||||||
unbuild: latest
|
unbuild: latest
|
||||||
unplugin: ^0.8.1
|
unplugin: ^0.9.0
|
||||||
vite: ~3.0.4
|
vite: ~3.0.4
|
||||||
vite-node: ^0.21.0
|
vite-node: ^0.21.0
|
||||||
vite-plugin-checker: ^0.4.9
|
vite-plugin-checker: ^0.4.9
|
||||||
@ -1939,7 +1939,7 @@ __metadata:
|
|||||||
time-fix-plugin: ^2.0.7
|
time-fix-plugin: ^2.0.7
|
||||||
ufo: ^0.8.5
|
ufo: ^0.8.5
|
||||||
unbuild: latest
|
unbuild: latest
|
||||||
unplugin: ^0.8.1
|
unplugin: ^0.9.0
|
||||||
url-loader: ^4.1.1
|
url-loader: ^4.1.1
|
||||||
vue: 3.2.37
|
vue: 3.2.37
|
||||||
vue-bundle-renderer: ^0.4.1
|
vue-bundle-renderer: ^0.4.1
|
||||||
@ -10124,7 +10124,7 @@ __metadata:
|
|||||||
unctx: ^2.0.1
|
unctx: ^2.0.1
|
||||||
unenv: ^0.5.2
|
unenv: ^0.5.2
|
||||||
unimport: ^0.6.5
|
unimport: ^0.6.5
|
||||||
unplugin: ^0.8.1
|
unplugin: ^0.9.0
|
||||||
untyped: ^0.4.5
|
untyped: ^0.4.5
|
||||||
vue: ^3.2.37
|
vue: ^3.2.37
|
||||||
vue-bundle-renderer: ^0.4.1
|
vue-bundle-renderer: ^0.4.1
|
||||||
@ -13294,6 +13294,32 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"unplugin@npm:^0.9.0":
|
||||||
|
version: 0.9.0
|
||||||
|
resolution: "unplugin@npm:0.9.0"
|
||||||
|
dependencies:
|
||||||
|
acorn: ^8.8.0
|
||||||
|
chokidar: ^3.5.3
|
||||||
|
webpack-sources: ^3.2.3
|
||||||
|
webpack-virtual-modules: ^0.4.4
|
||||||
|
peerDependencies:
|
||||||
|
esbuild: ">=0.13"
|
||||||
|
rollup: ^2.50.0
|
||||||
|
vite: ^2.3.0 || ^3.0.0-0
|
||||||
|
webpack: 4 || 5
|
||||||
|
peerDependenciesMeta:
|
||||||
|
esbuild:
|
||||||
|
optional: true
|
||||||
|
rollup:
|
||||||
|
optional: true
|
||||||
|
vite:
|
||||||
|
optional: true
|
||||||
|
webpack:
|
||||||
|
optional: true
|
||||||
|
checksum: 94fd5fa597e1607831134dd34d18ddcb20d24f473a88ca34dc89b4cd0d4c17ca5eb5987b0152dab52c9ae146fc9a768556a2b89dd8725947c97c95cd6640ca86
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"unstorage@npm:^0.5.6":
|
"unstorage@npm:^0.5.6":
|
||||||
version: 0.5.6
|
version: 0.5.6
|
||||||
resolution: "unstorage@npm:0.5.6"
|
resolution: "unstorage@npm:0.5.6"
|
||||||
|
Loading…
Reference in New Issue
Block a user