Skip to content

Commit 793cf71

Browse files
authored
feat: enable native resolver by default (#346)
1 parent 70a9530 commit 793cf71

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
steps:
144144
- run: echo "Build & Test Failed"
145145

146-
test-native-plugins:
146+
test-js-plugins:
147147
needs: changed
148148
if: needs.changed.outputs.should_skip != 'true'
149149
timeout-minutes: 20
@@ -154,7 +154,7 @@ jobs:
154154
node_version: [22]
155155
fail-fast: false
156156

157-
name: "Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }} (native plugins)"
157+
name: "Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }} (js plugins)"
158158
steps:
159159
- name: Checkout
160160
uses: actions/checkout@v4
@@ -203,17 +203,17 @@ jobs:
203203
- name: Test unit
204204
run: pnpm run test-unit
205205
env:
206-
_VITE_TEST_NATIVE_PLUGIN: 1
206+
_VITE_TEST_JS_PLUGIN: 1
207207

208208
- name: Test serve
209209
run: pnpm run test-serve
210210
env:
211-
_VITE_TEST_NATIVE_PLUGIN: 1
211+
_VITE_TEST_JS_PLUGIN: 1
212212

213213
- name: Test build
214214
run: pnpm run test-build
215215
env:
216-
_VITE_TEST_NATIVE_PLUGIN: 1
216+
_VITE_TEST_JS_PLUGIN: 1
217217

218218
lint:
219219
timeout-minutes: 10

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ markdownStyles: false
1515
import { useData } from 'vitepress'
1616
import { 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'
1919
import FeatureSection from './.vitepress/theme/components/landing/2. feature-section/FeatureSection.vue'
2020
import FrameworksSection from './.vitepress/theme/components/landing/3. frameworks-section/FrameworksSection.vue'
2121
import CommunitySection from './.vitepress/theme/components/landing/4. community-section/CommunitySection.vue'
2222
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'
2424
import FeatureInstantServerStart from './.vitepress/theme/components/landing/2. feature-section/FeatureInstantServerStart.vue'
2525
import FeatureHMR from './.vitepress/theme/components/landing/2. feature-section/FeatureHMR.vue'
2626
import FeatureRichFeatures from './.vitepress/theme/components/landing/2. feature-section/FeatureRichFeatures.vue'

packages/vite/src/node/config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,7 @@ export const configDefaults = Object.freeze({
730730
importGlobRestoreExtension: false,
731731
renderBuiltUrl: undefined,
732732
hmrPartialAccept: false,
733-
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN
734-
? 'resolver'
735-
: false,
733+
enableNativePlugin: process.env._VITE_TEST_JS_PLUGIN ? false : 'resolver',
736734
},
737735
future: {
738736
removePluginHookHandleHotUpdate: undefined,

0 commit comments

Comments
 (0)