HtmlImport in Vaadin 16

Does anyone know what happened to the @HtmlImport annotation in Vaadin 16? It appears to be gone, as does Page.addHtmlImport(…). I am trying to build my own svg icon library and not sure the best way to add the svg defs to the page. There is a new addDynamicImport(…) but I can’t find any documentation on it.

HTML imports are not supported since Vaadin 15 (and in Vaadin 14, only in compatibility mode). HTML imports as a technology are deprecated; see https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports for more information. The closest replacement to the @HtmlImport annotation would be @JsModule: https://vaadin.com/docs/v16/flow/importing-dependencies/tutorial-importing.html

You might want to take a look at https://github.com/FlowingCode/FontAwesomeIronIconset for inspiration.