Skip to content

Commit b3ddbdc

Browse files
authored
fix: filter hilla and copilot packages better (#19113)
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
1 parent b78f72f commit b3ddbdc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vaadin-spring/src/main/java/com/vaadin/flow/spring/VaadinServletContextInitializer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ public class VaadinServletContextInitializer
130130
"com/vaadin/external/gwt", "javassist/", "io/methvin",
131131
"com/github/javaparser", "oshi/", "io/micrometer", "jakarta/",
132132
"com/nimbusds", "elemental/util", "elemental/json",
133-
"org/reflections", "org/aopalliance", "org/objectweb")
133+
"org/reflections", "org/aopalliance", "org/objectweb",
134+
135+
"com/vaadin/hilla", "com/vaadin/copilot")
134136
.collect(Collectors.toList());
135137

136138
/**
@@ -142,7 +144,7 @@ public class VaadinServletContextInitializer
142144
Theme.class.getPackage().getName(),
143145
// LitRenderer uses script annotation
144146
"com.vaadin.flow.data.renderer", "com.vaadin.shrinkwrap",
145-
"com.vaadin.hilla")
147+
"com.vaadin.copilot.startup", "com.vaadin.hilla.startup")
146148
.collect(Collectors.toList());
147149

148150
/**

0 commit comments

Comments
 (0)