Kelin2025 / vue-timers

Mixin to manage your intervals in Vue.js
MIT License
231 stars 17 forks source link

browser support #49

Closed Andrei-Pozolotin closed 5 years ago

Andrei-Pozolotin commented 5 years ago
  1. to work in bare browser (no import, no webpack) most vue plugins provide umd dist, i.e.: https://github.com/vuejs/vue-router/blob/dev/dist/vue-router.js https://github.com/LinusBorg/portal-vue/blob/develop/dist/portal-vue.umd.js

  2. in order for browser import to work https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

these: https://github.com/Kelin2025/vue-timers/blob/master/index.js

import VueTimers from './mixin'

should use *.js

import VueTimers from './mixin.js'
masongzhi commented 5 years ago

you mean it should be build to umd format?

Andrei-Pozolotin commented 5 years ago

yes, including umd, please. for tests via jsfiddle, etc.

Andrei-Pozolotin commented 5 years ago

thank you