Is your feature request related to a problem? Please describe.
Refactor the component so the CE define is not part of the default export. This will allow for custom CE definitions that will improve the versioning issues we currently face.
Describe the solution you'd like
Separate the define(name) method out of the default export.
Create a new registerComponent(name) method in index.js for easy registration of uniquely named components.
Cleanup the build commands and tests to account for new usage.
Is your feature request related to a problem? Please describe.
Refactor the component so the CE define is not part of the default export. This will allow for custom CE definitions that will improve the versioning issues we currently face.
Describe the solution you'd like
Separate the
define(name)
method out of the default export.Create a new
registerComponent(name)
method inindex.js
for easy registration of uniquely named components.Cleanup the build commands and tests to account for new usage.
Additional context
This article gives a fantastic explanation of the issue: https://dev.to/florianrappl/versioning-web-components-3bda