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
1515import { useData } from ' vitepress'
1616import { onBeforeUnmount , onMounted , ref } from ' vue'
1717
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'
1919import FeatureSection from ' ./.vitepress/theme/components/landing/2. feature-section/FeatureSection.vue'
2020import FrameworksSection from ' ./.vitepress/theme/components/landing/3. frameworks-section/FrameworksSection.vue'
2121import CommunitySection from ' ./.vitepress/theme/components/landing/4. community-section/CommunitySection.vue'
2222import 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'
2424import FeatureInstantServerStart from ' ./.vitepress/theme/components/landing/2. feature-section/FeatureInstantServerStart.vue'
2525import FeatureHMR from ' ./.vitepress/theme/components/landing/2. feature-section/FeatureHMR.vue'
2626import 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'
6565
6666const subpathImportsPrefix = '#'
6767
68+ const relativePrefixRE = / ^ \. \. ? (?: [ / \\ ] | $ ) /
6869const startsWithWordCharRE = / ^ \w /
6970
7071const debug = createDebugger ( 'vite:resolve-details' , {
@@ -251,7 +252,7 @@ export function resolvePlugin(
251252
252253 // relative
253254 if (
254- id [ 0 ] === '.' ||
255+ relativePrefixRE . test ( id ) ||
255256 ( ( preferRelative ||
256257 resolveOpts . isEntry ||
257258 importer ?. endsWith ( '.html' ) ) &&
You can’t perform that action at this time.
0 commit comments