In the classic site one could link a html file via the content link on the content editor webpart, as seen in the screenshot below-
How can one do the same on a modern site? I tried adding the Modern Script Editor Webpart but then you can't link an HTML file to it.
Any help on this matter would be greatly appreciated!