There is missing a semicolon at the end of the minified version of the script, that causes it fail with frameworks that concatenate the scripts.