fix(nuxt): remove null-byte prefix for virtual files (#29809)

This commit is contained in:
Daniel Roe 2024-11-06 06:37:41 +00:00 committed by GitHub
parent 98f965f1c5
commit c2fe249b1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'