Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
update hookable
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 15, 2022
1 parent 1a12c4e commit 4a1759b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"globby": "^13.1.2",
"h3": "^0.7.21",
"hash-sum": "^2.0.0",
"hookable": "^5.4.0",
"hookable": "^5.4.1",
"knitwork": "^0.1.2",
"magic-string": "^0.26.7",
"mlly": "^0.5.16",
Expand Down
5 changes: 1 addition & 4 deletions packages/nuxt/src/app/plugins/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@ import { createDebugger } from 'hookable'
import { defineNuxtPlugin } from '#app'

export default defineNuxtPlugin((nuxtApp) => {
// @ts-expect-error remove in next version of hookable
createDebugger(nuxtApp.hooks, {
tag: 'nuxt app'
})
createDebugger(nuxtApp.hooks, { tag: 'nuxt-app' })
})
12 changes: 4 additions & 8 deletions packages/nuxt/src/core/nuxt.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join, normalize, resolve } from 'pathe'
import { createHooks } from 'hookable'
import { createHooks, createDebugger } from 'hookable'
import type { Nuxt, NuxtOptions, NuxtConfig, ModuleContainer, NuxtHooks } from '@nuxt/schema'
import { loadNuxtConfig, LoadNuxtOptions, nuxtCtx, installModule, addComponent, addVitePlugin, addWebpackPlugin, tryResolveModule, addPlugin } from '@nuxt/kit'
// Temporary until finding better placement
Expand Down Expand Up @@ -234,13 +234,9 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise<Nuxt> {

const nuxt = createNuxt(options)

// TODO: parallel kit:compatibility calls in defineModule
// if (nuxt.options.debug) {
// // @ts-expect-error remove in next version of hookable
// createDebugger(nuxt.hooks, {
// tag: 'nuxt build'
// })
// }
if (nuxt.options.debug) {
createDebugger(nuxt.hooks, { tag: 'nuxt' })
}

if (opts.ready !== false) {
await nuxt.ready()
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8380,6 +8380,13 @@ __metadata:
languageName: node
linkType: hard

"hookable@npm:^5.4.1":
version: 5.4.1
resolution: "hookable@npm:5.4.1"
checksum: 2a48150436bf70b4b756bcf15694809032c490c1747aba363a6de928a96712e808b0918de06c933e082cc2042c3f051b593d400df6af4773cd9ad1e85d677839
languageName: node
linkType: hard

"hosted-git-info@npm:^2.1.4":
version: 2.8.9
resolution: "hosted-git-info@npm:2.8.9"
Expand Down Expand Up @@ -11029,7 +11036,7 @@ __metadata:
globby: ^13.1.2
h3: ^0.7.21
hash-sum: ^2.0.0
hookable: ^5.4.0
hookable: ^5.4.1
knitwork: ^0.1.2
magic-string: ^0.26.7
mlly: ^0.5.16
Expand Down

0 comments on commit 4a1759b

Please sign in to comment.