File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/vite/src/plugins Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import { createUnplugin } from 'unplugin'
22import MagicString from 'magic-string'
3- import { fileURLToPath , resolvePath } from 'mlly'
3+ import { resolvePath } from 'mlly'
44import { dirname } from 'pathe'
55import { AliasProvider , AliasRuntime , PkgName } from '@vueuse/schema-org'
66
@@ -48,9 +48,9 @@ export const AliasRuntimePlugin = () => createUnplugin<AliasPluginOptions>((user
4848 runtime = userConfig . paths ?. runtime || `${ pkg } /runtime`
4949 }
5050 paths = {
51- pkg : fileURLToPath ( pkg ) ,
52- provider : fileURLToPath ( provider ) ,
53- runtime : fileURLToPath ( runtime ) ,
51+ pkg,
52+ provider,
53+ runtime,
5454 }
5555 return paths
5656 }
@@ -62,7 +62,7 @@ export const AliasRuntimePlugin = () => createUnplugin<AliasPluginOptions>((user
6262 await fetchPaths ( )
6363 } ,
6464 transformInclude ( id ) {
65- return id . startsWith ( paths . pkg )
65+ return id . includes ( paths . pkg )
6666 } ,
6767 transform ( code ) {
6868 // swap out aliases for real paths
You can’t perform that action at this time.
0 commit comments