This applies to `append` and `prepend` import modes; support for `importlib` mode will be added in a separate change.