Skip to content

Commit 8ab1121

Browse files
committed
fix: update
1 parent a712a08 commit 8ab1121

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/src/cli/build.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ export async function build(
2424

2525
if (options?.watch) {
2626
const files: string[] = [];
27-
options.configFilePath && files.push(options?.configFilePath);
27+
28+
if (options.configFilePath) {
29+
files.push(options.configFilePath);
30+
}
2831

2932
onBeforeRestartServer(buildInstance.close);
3033

3134
watchFilesForRestart(files, async () => {
3235
const { content: rslibConfig, filePath: configFilePath } =
3336
await loadRslibConfig(options);
37+
3438
await build(rslibConfig, {
3539
configFilePath,
3640
...options,

0 commit comments

Comments
 (0)