Javascript in Add-on modules in Jmix 2.x

In Cuba, when we build an add-on, we can define Javascript web components for the UI screens. This will be inherited by the subsequent Cuba project that installs the add-on.
However in Jmix 2.x, we can also have Javascript web components (located in frontend directory) but this is put into the Full Stack project which then depends on the add-ons that we created separately.

Can we structure the add-on project to have the Javascript web components which can be inherited by the Full Stack project ?