Skip to content

Commit 714d220

Browse files
authored
fix: postpone frontend bootstrap file generation (#20947)
Generation of vaadin.ts bootstrap file allows developers to modify the contents by providing implementations of the TypeScriptBootstrapModifier interface. However, this task is executed early and the modifier may look for files that are not yet generated or that can be deleted by subsequent tasks. This change move the generation of the bootstrap file just before building the dev bundle so that all the runtime generated files are available to the modifiers. Fixes #20946
1 parent 91a5bbc commit 714d220

File tree

1 file changed

+1
-1
lines changed
  • flow-server/src/main/java/com/vaadin/flow/server/frontend

1 file changed

+1
-1
lines changed

flow-server/src/main/java/com/vaadin/flow/server/frontend/NodeTasks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public class NodeTasks implements FallibleCommand {
6969
TaskGenerateTsConfig.class,
7070
TaskGenerateTsDefinitions.class,
7171
TaskGenerateServiceWorker.class,
72-
TaskGenerateBootstrap.class,
7372
TaskGenerateWebComponentHtml.class,
7473
TaskGenerateWebComponentBootstrap.class,
7574
TaskGenerateFeatureFlags.class,
@@ -86,6 +85,7 @@ public class NodeTasks implements FallibleCommand {
8685
TaskUpdateImports.class,
8786
TaskUpdateThemeImport.class,
8887
TaskCopyTemplateFiles.class,
88+
TaskGenerateBootstrap.class,
8989
TaskRunDevBundleBuild.class,
9090
TaskPrepareProdBundle.class,
9191
TaskCleanFrontendFiles.class,

0 commit comments

Comments
 (0)