mvertopoulos / vue-msal

Vue plugin for using Microsoft Authentication Library (MSAL)
MIT License
123 stars 66 forks source link

Failing on build #6

Closed seanmerrifield closed 4 years ago

seanmerrifield commented 4 years ago

Hello,

Thanks for setting this up!

I still new to javascript and I seem to have trouble getting the build to succeed, although I am able to successfully launch the server in dev. I get the error:

ERROR in build.js from UglifyJs Unexpected token: name (msalPlugin) [./node_modules/vue-msal/dist/plugin.js:15,0][build.js:13535,6]

I'm using Vue version 2.5.11.

mvertopoulos commented 4 years ago

Hi,

I haven't used Uglify but this is what I found from a quick search. The vue-msal plugin is transpiled to ES2015 (ES6).

Please take a look at this issue and more specifically this comment.

This is also mentioned on a note at the start of Uglify's documentation.

Let me know if that helps.

mvertopoulos commented 4 years ago

Closing issue as there has been no answer for a while