Skip to content

Commit 2cf0eb2

Browse files
chore: 🤖 add experimental.enableNativePlugin
1 parent b884fb8 commit 2cf0eb2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

‎packages/vite/src/node/config.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,14 @@ export interface ExperimentalOptions {
327327
* @default false
328328
*/
329329
skipSsrTransform?: boolean
330+
331+
/**
332+
* Enable builtin plugin that writeen by rust, which is faster than js plugin.
333+
*
334+
* @experimental
335+
* @default true
336+
*/
337+
enableNativePlugin: boolean
330338
}
331339

332340
export interface LegacyOptions {
@@ -828,6 +836,7 @@ export async function resolveConfig(
828836
experimental: {
829837
importGlobRestoreExtension: false,
830838
hmrPartialAccept: false,
839+
enableNativePlugin: true,
831840
...config.experimental,
832841
},
833842
getSortedPlugins: undefined!,

‎packages/vite/src/node/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export { buildErrorMessage } from './server/middlewares/error'
1818
export { fetchModule } from './ssr/fetchModule'
1919
export type { FetchModuleOptions } from './ssr/fetchModule'
2020
export * from './publicUtils'
21+
// import {globImportPlugin} from 'rolldown/experimental'
2122

2223
// additional types
2324
export type {

0 commit comments

Comments
 (0)