fix(es/minifier): use numeric literals for non-finite values (#12048)