Skip to content

Commit 757c4b4

Browse files
committed
chore: remove unnecessary forced inputOptions.onLog
1 parent f1c8656 commit 757c4b4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/rolldown/src/utils/create-bundler.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@ export async function createBundler(
3939
)
4040

4141
const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO
42-
// Force `inputOptions.onLog` to `logHandler` because some rollup plugin hook tests use `options.onLog`.
43-
const onLog = (inputOptions.onLog = getLogger(
42+
const onLog = getLogger(
4443
getObjectPlugins(inputPlugins),
4544
getOnLog(inputOptions, logLevel),
4645
logLevel,
47-
))
46+
)
4847

4948
let plugins = [
5049
...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX),
@@ -64,7 +63,7 @@ export async function createBundler(
6463
const parallelPluginInitResult = await initializeParallelPlugins(plugins)
6564

6665
try {
67-
// Convert `NormalizedInputOptions` to `BindingInputOptions`
66+
// Convert `InputOptions` to `BindingInputOptions`
6867
const bindingInputOptions = bindingifyInputOptions(
6968
plugins,
7069
inputOptions,
@@ -73,7 +72,7 @@ export async function createBundler(
7372
logLevel,
7473
)
7574

76-
// Convert `NormalizedOutputOptions` to `BindingInputOptions`
75+
// Convert `OutputOptions` to `BindingInputOptions`
7776
const bindingOutputOptions = bindingifyOutputOptions(outputOptions)
7877

7978
return {

0 commit comments

Comments
 (0)