Closed Andrei-Pozolotin closed 5 years ago
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
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
*.js
import VueTimers from './mixin.js'
you mean it should be build to umd format?
yes, including umd, please. for tests via jsfiddle, etc.
thank you
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
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
should use
*.js