Use updated source mapping standard syntax for legacy injection

Fixes #18248