See https://github.com/montagejs/montage/pull/1356/files#diff-6044d73dea1cd836bfec7ae89ab35353R143