This PoC creates two separate Vue version-specific packages that reference the same component source code. A third package, intended to be published, joins the build artifacts of the two and selects one depending on the consumer's installed Vue version.
yarn install
yarn dev:vue3
yarn dev:vue2