Skip to content

Commit

Permalink
fix: filter hilla and copilot packages better (#19113)
Browse files Browse the repository at this point in the history
Filter "com/vaadin/hilla" and "com/vaadin/copilot" packages by default from the class scanner in VaadinServletContextInitializer and include only what is really needed: com.vaadin.copilot.startup and com.vaadin.hilla.startup. This speeds up mostly reload time and also startup time a bit.

Related-to: #19112
  • Loading branch information
tltv committed Apr 12, 2024
1 parent b78f72f commit b3ddbdc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ public class VaadinServletContextInitializer
"com/vaadin/external/gwt", "javassist/", "io/methvin",
"com/github/javaparser", "oshi/", "io/micrometer", "jakarta/",
"com/nimbusds", "elemental/util", "elemental/json",
"org/reflections", "org/aopalliance", "org/objectweb")
"org/reflections", "org/aopalliance", "org/objectweb",

"com/vaadin/hilla", "com/vaadin/copilot")
.collect(Collectors.toList());

/**
Expand All @@ -142,7 +144,7 @@ public class VaadinServletContextInitializer
Theme.class.getPackage().getName(),
// LitRenderer uses script annotation
"com.vaadin.flow.data.renderer", "com.vaadin.shrinkwrap",
"com.vaadin.hilla")
"com.vaadin.copilot.startup", "com.vaadin.hilla.startup")
.collect(Collectors.toList());

/**
Expand Down

0 comments on commit b3ddbdc

Please sign in to comment.