This tool uses a 'v3' approach to group components in a library, create a component map, employ webpack, and load the library like Pega-generated components, constellation app-static.
github.com/pegasystems/constellation-dx-components-build-utils
pegasystems/constellation-dx-components-build-utils