Okta auth js issue after webpack build

Okta auth works well at local with node. However after webpack and minify to main.js, it reports referenceerror, m is not defined. If I remove okta auth related code, then it works. Any idea?

It likely happens in this line:

      l.setRequestHeader(t, e)
                                        }), s.signal && (s.signal.addEventListener("abort", i), l.onreadystatechange = function() {
                                            4 === l.readyState && s.signal.removeEventListener("abort", i)
                                        }), l.send(void 0 === s._bodyInit ? null : s._bodyInit)
                                    })
                                }
      -->                         var h = "URLSearchParams" in M,
                                    m = "Symbol" in M && "iterator" in Symbol,
                                    g = "FileReader" in M && "Blob" in M && function() {
                                        try {
                                            return new Blob, !0