What you explain make sense, you need the full Handlebars to pre-compile those templates. The simple replace on build wouldn't work in your case.