File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/react-pages/src/node/virtual-module-plugins/demo-modules Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import { strip } from 'jest-docblock'
2
2
import { ProxyModulesManager } from '../../utils/virtual-module'
3
3
import { extractStaticData } from '../../utils/virtual-module/utils'
4
4
5
- const DEMO_PROXY_PREFIX = '/@react-pages/demos'
5
+ // mark demo proxy files as virtual files to avoid vite warning "missing source files"
6
+ // https://github.com/vitejs/vite/blob/60721ac53a1bf326d1cac097f23642faede234ff/packages/vite/src/node/server/sourcemap.ts#L39
7
+ // https://vitejs.dev/guide/api-plugin.html#virtual-modules-convention
8
+ const DEMO_PROXY_PREFIX = '\0/@react-pages/demos'
6
9
7
10
export class DemoModuleManager {
8
11
private pmm = new ProxyModulesManager ( DEMO_PROXY_PREFIX )
You can’t perform that action at this time.
0 commit comments