Skip to content

Commit

Permalink
chore: 🤖 add experimental.enableNativePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Sep 10, 2024
1 parent b884fb8 commit 2cf0eb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,14 @@ export interface ExperimentalOptions {
* @default false
*/
skipSsrTransform?: boolean

/**
* Enable builtin plugin that writeen by rust, which is faster than js plugin.
*
* @experimental
* @default true
*/
enableNativePlugin: boolean
}

export interface LegacyOptions {
Expand Down Expand Up @@ -828,6 +836,7 @@ export async function resolveConfig(
experimental: {
importGlobRestoreExtension: false,
hmrPartialAccept: false,
enableNativePlugin: true,
...config.experimental,
},
getSortedPlugins: undefined!,
Expand Down
1 change: 1 addition & 0 deletions packages/vite/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export { buildErrorMessage } from './server/middlewares/error'
export { fetchModule } from './ssr/fetchModule'
export type { FetchModuleOptions } from './ssr/fetchModule'
export * from './publicUtils'
// import {globImportPlugin} from 'rolldown/experimental'

// additional types
export type {
Expand Down

0 comments on commit 2cf0eb2

Please sign in to comment.