Minified js did not export correctly to window