From 4b08844535374c9ffb690bcb78a68e1e90eaa58f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 6 Nov 2024 06:37:41 +0000 Subject: [PATCH] fix(nuxt): remove null-byte prefix for virtual files (#29809) --- packages/nuxt/src/core/plugins/virtual.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/plugins/virtual.ts b/packages/nuxt/src/core/plugins/virtual.ts index a855985031..e50970c225 100644 --- a/packages/nuxt/src/core/plugins/virtual.ts +++ b/packages/nuxt/src/core/plugins/virtual.ts @@ -3,7 +3,7 @@ import type { Nuxt } from '@nuxt/schema' import { dirname, isAbsolute, resolve } from 'pathe' import { createUnplugin } from 'unplugin' -const PREFIX = '\0virtual:nuxt:' +const PREFIX = 'virtual:nuxt:' interface VirtualFSPluginOptions { mode: 'client' | 'server'