Skip to content

Commit

Permalink
don't use ES6 syntax in a dist package
Browse files Browse the repository at this point in the history
using ES6 syntax will cause trouble unless you transpile before use (which is something you should not be required to do in a dist package)
  • Loading branch information
konqi authored Jun 20, 2017
1 parent 62785d1 commit ab960e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swagger-ui-dist-package/absolute-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @return {string} When run in NodeJS env, returns the absolute path to the current directory
* When run outside of NodeJS, will return an error message
*/
const getAbsoluteFSPath = () => {
const getAbsoluteFSPath = function () {
// detect whether we are running in a browser or nodejs
if (typeof module !== "undefined" && module.exports) {
return require("path").resolve(__dirname)
Expand Down

0 comments on commit ab960e8

Please sign in to comment.