See https://github.com/montagejs/montage/pull/1356/files#diff-1ad6fd984538ae3a9ecf74a3c2651e0dR42