This reverts commit 91e21836f6. `export` and `import` directives have several syntax variants and not all of them were properly covered. Thanks Hervé Le Roy for the report. Backport of ba9ced3e9a from main
91e21836f6
ba9ced3e9a