Skip to content

Commit ab960e8

Browse files
authored
don't use ES6 syntax in a dist package
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)
1 parent 62785d1 commit ab960e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swagger-ui-dist-package/absolute-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @return {string} When run in NodeJS env, returns the absolute path to the current directory
44
* When run outside of NodeJS, will return an error message
55
*/
6-
const getAbsoluteFSPath = () => {
6+
const getAbsoluteFSPath = function () {
77
// detect whether we are running in a browser or nodejs
88
if (typeof module !== "undefined" && module.exports) {
99
return require("path").resolve(__dirname)

0 commit comments

Comments
 (0)