chore(deps): upgrade unplugin (#6429)

This commit is contained in:
Anthony Fu 2022-08-09 04:12:07 +08:00 committed by GitHub
parent deb542ba51
commit 57f9a51c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 6 deletions

View File

@ -64,7 +64,7 @@
"unctx": "^2.0.1",
"unenv": "^0.5.2",
"unimport": "^0.6.5",
"unplugin": "^0.8.1",
"unplugin": "^0.9.0",
"untyped": "^0.4.5",
"vue": "^3.2.37",
"vue-bundle-renderer": "^0.4.1",

View File

@ -1,4 +1,5 @@
import { Nuxt, NuxtApp } from '@nuxt/schema'
import { normalize } from 'pathe'
import { createTransformer } from 'unctx/transform'
import { createUnplugin } from 'unplugin'
@ -14,6 +15,7 @@ export const UnctxTransformPlugin = (nuxt: Nuxt) => {
name: 'unctx:transfrom',
enforce: 'post',
transformInclude (id) {
id = normalize(id).replace(/\?.*$/, '')
return app?.plugins.some(i => i.src === id) || app?.middleware.some(m => m.path === id)
},
transform (code, id) {

View File

@ -47,7 +47,7 @@
"rollup": "^2.77.2",
"rollup-plugin-visualizer": "^5.7.1",
"ufo": "^0.8.5",
"unplugin": "^0.8.1",
"unplugin": "^0.9.0",
"vite": "~3.0.4",
"vite-node": "^0.21.0",
"vite-plugin-checker": "^0.4.9",

View File

@ -45,7 +45,7 @@
"style-resources-loader": "^1.5.0",
"time-fix-plugin": "^2.0.7",
"ufo": "^0.8.5",
"unplugin": "^0.8.1",
"unplugin": "^0.9.0",
"url-loader": "^4.1.1",
"vue-bundle-renderer": "^0.4.1",
"vue-loader": "^17.0.0",

View File

@ -1888,7 +1888,7 @@ __metadata:
rollup-plugin-visualizer: ^5.7.1
ufo: ^0.8.5
unbuild: latest
unplugin: ^0.8.1
unplugin: ^0.9.0
vite: ~3.0.4
vite-node: ^0.21.0
vite-plugin-checker: ^0.4.9
@ -1939,7 +1939,7 @@ __metadata:
time-fix-plugin: ^2.0.7
ufo: ^0.8.5
unbuild: latest
unplugin: ^0.8.1
unplugin: ^0.9.0
url-loader: ^4.1.1
vue: 3.2.37
vue-bundle-renderer: ^0.4.1
@ -10124,7 +10124,7 @@ __metadata:
unctx: ^2.0.1
unenv: ^0.5.2
unimport: ^0.6.5
unplugin: ^0.8.1
unplugin: ^0.9.0
untyped: ^0.4.5
vue: ^3.2.37
vue-bundle-renderer: ^0.4.1
@ -13294,6 +13294,32 @@ __metadata:
languageName: node
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":
version: 0.5.6
resolution: "unstorage@npm:0.5.6"