diff --git a/packages/core/src/Extension.ts b/packages/core/src/Extension.ts index 3d74cc91e..41e294594 100644 --- a/packages/core/src/Extension.ts +++ b/packages/core/src/Extension.ts @@ -171,13 +171,10 @@ export class Extension { return new Extension(config) } - configure(options?: Partial) { + configure(options: Partial = {}) { return Extension .create(this.config as ExtensionConfig) - .#configure({ - ...this.config.defaultOptions, - ...options, - }) + .#configure(options) } #configure = (options: Partial) => { diff --git a/packages/core/src/Mark.ts b/packages/core/src/Mark.ts index 857c02fe0..230fc6433 100644 --- a/packages/core/src/Mark.ts +++ b/packages/core/src/Mark.ts @@ -231,13 +231,10 @@ export class Mark { return new Mark(config) } - configure(options?: Partial) { + configure(options: Partial = {}) { return Mark .create(this.config as MarkConfig) - .#configure({ - ...this.config.defaultOptions, - ...options, - }) + .#configure(options) } #configure = (options: Partial) => { diff --git a/packages/core/src/Node.ts b/packages/core/src/Node.ts index 44accd6bf..b831dfc32 100644 --- a/packages/core/src/Node.ts +++ b/packages/core/src/Node.ts @@ -298,13 +298,10 @@ export class Node { return new Node(config) } - configure(options?: Partial) { + configure(options: Partial = {}) { return Node .create(this.config as NodeConfig) - .#configure({ - ...this.config.defaultOptions, - ...options, - }) + .#configure(options) } #configure = (options: Partial) => {