Skip to content

Commit a961414

Browse files
committed
fix: scan
1 parent c3b03a9 commit a961414

File tree

1 file changed

+2
-2
lines changed
  • packages/vite/src/node/optimizer

1 file changed

+2
-2
lines changed

packages/vite/src/node/optimizer/scan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'node:path'
44
import { performance } from 'node:perf_hooks'
55
import glob from 'fast-glob'
66
import type { Plugin } from 'rolldown'
7-
import * as rolldown from 'rolldown'
7+
import { scan } from 'rolldown/experimental'
88
import type { Loader } from 'esbuild'
99
import { transform } from 'esbuild'
1010
import colors from 'picocolors'
@@ -223,7 +223,7 @@ async function prepareRolldownScanner(
223223
plugins.push(rolldownScanPlugin(config, container, deps, missing, entries))
224224

225225
async function build() {
226-
await rolldown.experimental_scan({
226+
await scan({
227227
input: entries,
228228
logLevel: 'silent',
229229
plugins,

0 commit comments

Comments
 (0)