The rest_v1 api used in Wikisource places references at the end of each transcluded <pages ... /> section instaad of in the <references/> tag location. It breaks WS-Export which relies on this api.
Examples:
https://pl.wikisource.org/api/rest_v1/page/html/Epub_Test
vs.
https://pl.wikisource.org/wiki/Epub_Test
(references in the middle of text instead of after the "Przypisy" wiki section mark)
https://fr.wikisource.org/api/rest_v1/page/html/La_Vie_de_saint_Alexis
vs.
https://fr.wikisource.org/wiki/La_Vie_de_saint_Alexis
(the reference in the middle of text instead of at the end of the page)
Unfortunately, I cannot say when the problem was introduced :( Probably in the last few weeks or months.