configExtension
functionOverride a partial of the configuration of an Extension, to be used in the dependencies array of another extension, or as an argument to buildEditorFromExtensions. Before building the editor, configurations will be merged using `extension.mergeConfig(extension, config)` or shallowMergeConfig if this is not directly implemented by the Extension.
Import
import { configExtension } from '@modular/sdk/editor';Notes
- returns
- `[extension, config, ...configs]`
- example
- ```ts export const ReactDecoratorExtension = defineExtension({ name: "react-decorator", dependencies: [ configExtension(ReactExtension, { decorators: [<ReactDecorator />] }), ], }); ```
- __NO_SIDE_EFFECTS__
- lexical-inline
- args