mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
chore(vite): unifiy vite plugin naming (#3151)
This commit is contained in:
parent
4b17f0cbaf
commit
cb663b0285
@ -33,7 +33,7 @@ function stripCommentsAndStrings (code: string) {
|
||||
|
||||
export const TransformPlugin = createUnplugin((ctx: AutoImportContext) => {
|
||||
return {
|
||||
name: 'nuxt-auto-imports-transform',
|
||||
name: 'nuxt:auto-imports-transform',
|
||||
enforce: 'post',
|
||||
transformInclude (id) {
|
||||
const { pathname, search } = parseURL(id)
|
||||
|
@ -8,7 +8,7 @@ interface LoaderOptions {
|
||||
}
|
||||
|
||||
export const loaderPlugin = createUnplugin((options: LoaderOptions) => ({
|
||||
name: 'nuxt-components-loader',
|
||||
name: 'nuxt:components-loader',
|
||||
enforce: 'post',
|
||||
transformInclude (id) {
|
||||
const { pathname, search } = parseURL(id)
|
||||
|
@ -9,7 +9,7 @@ export interface TransformMacroPluginOptions {
|
||||
|
||||
export const TransformMacroPlugin = createUnplugin((options: TransformMacroPluginOptions) => {
|
||||
return {
|
||||
name: 'nuxt-pages-macros-transform',
|
||||
name: 'nuxt:pages-macros-transform',
|
||||
enforce: 'post',
|
||||
transformInclude (id) {
|
||||
const { search, pathname } = parseURL(id)
|
||||
|
@ -6,7 +6,7 @@ import { ViteBuildContext } from '../vite'
|
||||
export function analyzePlugin (ctx: ViteBuildContext): Plugin[] {
|
||||
return [
|
||||
{
|
||||
name: 'nuxt-analyze-minify',
|
||||
name: 'nuxt:analyze-minify',
|
||||
async generateBundle (_opts, outputBundle) {
|
||||
for (const [_bundleId, bundle] of Object.entries(outputBundle)) {
|
||||
if (bundle.type !== 'chunk') { continue }
|
||||
|
Loading…
Reference in New Issue
Block a user