Vaadin 25: add-on - resources are not picked up from sub-folders

One problem I noticed in Vaadin 25 is that my resources such as:
@JsModule("./so/chart/chart.js")
are not picked up from the sub-folders.
As per the new convention in Vaadin 25, I am keeping the resources under the src/main/frontend/ folder.
If I put the chart.js file directly under the src/main/frontend/ folder it works!
@JsModule("./chart.js")

There is difference between developing apps and add-ons. In case of add-ons the resources needed by the add-on should still be in “src/main/resources/META-INF/resources/frontend” if you use @JsModule. The “src/main/resources” should not be used and packaged to add-on jar. You can use it in separate demo application module for resources needed by the demo. If you use single module add-on project, where demo is under “src/test” and run jetty using test scope, then you should still use the old “frontend” location instead of “src/main/frontend” so that it s not bundled in the add-on jar.