Skip to content

An illustrative example how web components may be properly distributed to allow multiple versions in one application.

License

Notifications You must be signed in to change notification settings

piral-samples/web-components-multi-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piral Logo

Demo project illustrating using versioned web components with a centrally shared component library.

⚡ Share, but also take care.

You can visit this demo at wc-version-demo.samples.piral.cloud/.

Getting Started

Install the dependencies:

yarn install

Now run the application:

yarn start

What's Inside

  • A simple app shell using lib-v1
  • A micro frontend (mf-one) using the web components from lib-v1
  • A micro frontend (mf-two) using its own version of the web component library (lib-v2)
  • Two versions of the same library, lib-v1 and lib-v2

License

Piral and this sample code is released using the MIT license. For more information see the license file.