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 a8fb9b2 commit 4981285Copy full SHA for 4981285
packages/world-local/src/index.ts
@@ -11,7 +11,7 @@ import { createStreamer } from './streamer.js';
11
* @param {Partial<Config>} args - The configuration to use for the embedded world.
12
*/
13
export function createEmbeddedWorld(args: Partial<Config>): World {
14
- const mergedConfig = { ...config.value, ...args };
+ const mergedConfig = { ...config.value, ...(args ?? {}) };
15
return {
16
...createQueue(mergedConfig),
17
...createStorage(mergedConfig.dataDir),
0 commit comments