We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a712a08 commit 8ab1121Copy full SHA for 8ab1121
packages/core/src/cli/build.ts
@@ -24,13 +24,17 @@ export async function build(
24
25
if (options?.watch) {
26
const files: string[] = [];
27
- options.configFilePath && files.push(options?.configFilePath);
+
28
+ if (options.configFilePath) {
29
+ files.push(options.configFilePath);
30
+ }
31
32
onBeforeRestartServer(buildInstance.close);
33
34
watchFilesForRestart(files, async () => {
35
const { content: rslibConfig, filePath: configFilePath } =
36
await loadRslibConfig(options);
37
38
await build(rslibConfig, {
39
configFilePath,
40
...options,
0 commit comments