nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.42k stars 864 forks source link

es6 javascript module build #317

Open ilikerobots opened 5 years ago

ilikerobots commented 5 years ago

Is it possible to generate a es6 javascript browser module build compatible with the vue.esm.browser.js build?

nathanreyes commented 5 years ago

Not that I know of, with Vue CLI anyways. That would be convenient for local testing.

I haven't investigated much further than that though

baybal commented 5 years ago

I have issue with es6 vue: TypeError: t is not a constructor

This precludes using 1.0 in Nuxt

andreasvirkus commented 5 years ago

Also having issues when trying to register it in a SFC:

import { setupCalendar, Calendar } from 'v-calendar'

setupCalendar({ ... })

export default {
  components: { Calendar }
}

Gives me the same error (TypeError: t is not a constructor). There's no errors when registering it globally though.

I'm on version 1.0.0-beta.14

szhang-ezypay commented 5 years ago

I'm having the same issue.

Before I was using 0.9.2 and I can use it locally in my component. I just need to call setupCalendar() in created hook.

After upgrade to 1.0.0-beta.16, register globally is the only way to use it.

benliu723 commented 5 years ago

What is the current status? Looks like it haven't been solved.