File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ markdownStyles: false
15
15
import { useData } from ' vitepress'
16
16
import { onBeforeUnmount , onMounted , ref } from ' vue'
17
17
18
- import Hero from ' .vitepress/theme/components/landing/1. hero-section/HeroSection.vue'
18
+ import Hero from ' ./. vitepress/theme/components/landing/1. hero-section/HeroSection.vue'
19
19
import FeatureSection from ' ./.vitepress/theme/components/landing/2. feature-section/FeatureSection.vue'
20
20
import FrameworksSection from ' ./.vitepress/theme/components/landing/3. frameworks-section/FrameworksSection.vue'
21
21
import CommunitySection from ' ./.vitepress/theme/components/landing/4. community-section/CommunitySection.vue'
22
22
import SponsorSection from ' ./.vitepress/theme/components/landing/5. sponsor-section/SponsorSection.vue'
23
- import GetStartedSection from ' .vitepress/theme/components/landing/6. get-started-section/GetStartedSection.vue'
23
+ import GetStartedSection from ' ./. vitepress/theme/components/landing/6. get-started-section/GetStartedSection.vue'
24
24
import FeatureInstantServerStart from ' ./.vitepress/theme/components/landing/2. feature-section/FeatureInstantServerStart.vue'
25
25
import FeatureHMR from ' ./.vitepress/theme/components/landing/2. feature-section/FeatureHMR.vue'
26
26
import FeatureRichFeatures from ' ./.vitepress/theme/components/landing/2. feature-section/FeatureRichFeatures.vue'
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export const optionalPeerDepId = '__vite-optional-peer-dep'
65
65
66
66
const subpathImportsPrefix = '#'
67
67
68
+ const relativePrefixRE = / ^ \. \. ? (?: [ / \\ ] | $ ) /
68
69
const startsWithWordCharRE = / ^ \w /
69
70
70
71
const debug = createDebugger ( 'vite:resolve-details' , {
@@ -251,7 +252,7 @@ export function resolvePlugin(
251
252
252
253
// relative
253
254
if (
254
- id [ 0 ] === '.' ||
255
+ relativePrefixRE . test ( id ) ||
255
256
( ( preferRelative ||
256
257
resolveOpts . isEntry ||
257
258
importer ?. endsWith ( '.html' ) ) &&
You can’t perform that action at this time.
0 commit comments