mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
refactor(nuxt): fix typo in internal plugin names (#9201)
This commit is contained in:
parent
88d7077fca
commit
e85e3ab6e5
@ -12,7 +12,7 @@ export const DevOnlyPlugin = createUnplugin((options: DevOnlyPluginOptions) => {
|
||||
const DEVONLY_COMP_RE = /<dev-?only>(:?[\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))
|
||||
|
@ -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))
|
||||
|
@ -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(/\?.*$/, '')
|
||||
|
Loading…
Reference in New Issue
Block a user