Skip to content

Remove deprecated lwc.buildCustomElementConstructor API #5030

Open
@nolanlawson

Description

@nolanlawson

This API is deprecated in favor of Ctor.CustomElementConstructor and it has roughly zero usage. We should just remove it.

export function deprecatedBuildCustomElementConstructor(
Ctor: ComponentConstructor
): HTMLElementConstructor {
if (process.env.NODE_ENV !== 'production') {
/* eslint-disable-next-line no-console */
console.warn(
'Deprecated function called: "buildCustomElementConstructor" function is deprecated and it will be removed.' +
`Use "${Ctor.name}.CustomElementConstructor" static property of the component constructor to access the corresponding custom element constructor instead.`
);
}
return Ctor.CustomElementConstructor;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions