mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(vite): transform virtual templates (#4512)
This commit is contained in:
parent
664aa970d0
commit
648a70e97b
@ -1,7 +1,7 @@
|
|||||||
import { dirname, isAbsolute, join, resolve } from 'pathe'
|
import { dirname, isAbsolute, join, resolve } from 'pathe'
|
||||||
import type { Plugin } from 'rollup'
|
import type { Plugin } from 'rollup'
|
||||||
|
|
||||||
const PREFIX = '\0virtual:'
|
const PREFIX = 'virtual:'
|
||||||
|
|
||||||
export default function virtual (vfs: Record<string, string>): Plugin {
|
export default function virtual (vfs: Record<string, string>): Plugin {
|
||||||
const extensions = ['', '.ts', '.vue', '.mjs', '.cjs', '.js', '.json']
|
const extensions = ['', '.ts', '.vue', '.mjs', '.cjs', '.js', '.json']
|
||||||
|
Loading…
Reference in New Issue
Block a user