vue-bulma / datepicker

Datepicker Component for Vue Bulma
MIT License
115 stars 56 forks source link

Write function for default inputClass object in plain js #54

Closed arubacao closed 7 years ago

arubacao commented 7 years ago

Hi there,

I'm running into problems uglifying my code with vue-bulma-datepicker as a dependency. Somehow it cannot deal with the ES6 function syntax in BasicInput.js

I'm using Laravel-mix and installed all appropriate loaders, however I still get this message:

ERROR  Failed to compile with 1 errors                                                                                                                                     13:53:40

error

/js/app.e759651324a0da6e9a5a.js from UglifyJs
Unexpected token: punc ()) [./~/vue-bulma-datepicker/src/BasicInput.js:9,0][/js/app.e759651324a0da6e9a5a.js:38950,16]

I know it looks ugly, but the function in plain js syntax works..

bambamboole commented 7 years ago

Please merge this fast :-)

fundon commented 7 years ago

https://github.com/vue-bulma/datepicker/blob/v1.3.6/src/BasicInput.js#L9-L11 Landed in v1.3.6