File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ export const components: { [componentName: string]: Component | undefined };
157157/**
158158 * Registers a component for use in mjml
159159 */
160- export function registerComponent ( ComponentClass : typeof Component ) : void ;
160+ export function registerComponent ( ComponentClass : typeof Component , options ?: { registerDependencies ?: boolean } ) : void ;
161161
162162export abstract class BodyComponent extends Component {
163163 constructor ( initialData : unknown ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class MjBreakpoint extends HeadComponent {
3939}
4040
4141registerComponent ( MjBreakpoint ) ;
42- registerComponent ( NewBodyComponent ) ;
42+ registerComponent ( NewBodyComponent , { registerDependencies : true } ) ;
4343
4444const skeleton : MJMLJsonObject = {
4545 tagName : "mjml" ,
You can’t perform that action at this time.
0 commit comments