From e85e3ab6e5d4dc399f2814865354db57315242e0 Mon Sep 17 00:00:00 2001 From: Danil Zalizchuk Date: Mon, 21 Nov 2022 12:45:54 +0200 Subject: [PATCH] refactor(nuxt): fix typo in internal plugin names (#9201) --- packages/nuxt/src/core/plugins/dev-only.ts | 2 +- packages/nuxt/src/core/plugins/tree-shake.ts | 2 +- packages/nuxt/src/core/plugins/unctx.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/core/plugins/dev-only.ts b/packages/nuxt/src/core/plugins/dev-only.ts index 84d88e8f69..8887035b41 100644 --- a/packages/nuxt/src/core/plugins/dev-only.ts +++ b/packages/nuxt/src/core/plugins/dev-only.ts @@ -12,7 +12,7 @@ export const DevOnlyPlugin = createUnplugin((options: DevOnlyPluginOptions) => { const DEVONLY_COMP_RE = /(:?[\s\S]*)<\/dev-?only>/gmi return { - name: 'nuxt:server-devonly:transfrom', + name: 'nuxt:server-devonly:transform', enforce: 'pre', transformInclude (id) { const { pathname, search } = parseURL(decodeURIComponent(pathToFileURL(id).href)) diff --git a/packages/nuxt/src/core/plugins/tree-shake.ts b/packages/nuxt/src/core/plugins/tree-shake.ts index 3ed8f81292..5d88a15bf3 100644 --- a/packages/nuxt/src/core/plugins/tree-shake.ts +++ b/packages/nuxt/src/core/plugins/tree-shake.ts @@ -13,7 +13,7 @@ export const TreeShakePlugin = createUnplugin((options: TreeShakePluginOptions) const COMPOSABLE_RE = new RegExp(`($\\s+)(${options.treeShake.join('|')})(?=\\()`, 'gm') return { - name: 'nuxt:server-treeshake:transfrom', + name: 'nuxt:server-treeshake:transform', enforce: 'post', transformInclude (id) { const { pathname, search } = parseURL(decodeURIComponent(pathToFileURL(id).href)) diff --git a/packages/nuxt/src/core/plugins/unctx.ts b/packages/nuxt/src/core/plugins/unctx.ts index aba7416bd9..23fd546b48 100644 --- a/packages/nuxt/src/core/plugins/unctx.ts +++ b/packages/nuxt/src/core/plugins/unctx.ts @@ -12,7 +12,7 @@ export const UnctxTransformPlugin = (nuxt: Nuxt) => { nuxt.hook('app:resolve', (_app) => { app = _app }) return createUnplugin((options: { sourcemap?: boolean } = {}) => ({ - name: 'unctx:transfrom', + name: 'unctx:transform', enforce: 'post', transformInclude (id) { id = normalize(id).replace(/\?.*$/, '')