Skip to content

Commit d0cb348

Browse files
committed
Update installation to ES6
1 parent cf8cc42 commit d0cb348

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

dist/vue-tabs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
var VueTabsPlugin = {
2-
VueTabs: require('./components/VueTabs.vue'),
3-
VTab: require('./components/TabContent.vue'),
4-
1+
import VueTabs from './components/VueTabs.vue'
2+
import VTab from './components/TabContent.vue'
3+
const VueTabsPlugin = {
4+
VueTabs: VueTabs,
5+
VTab: VTab,
56
install: function (Vue) {
6-
Vue.component('vue-tabs', module.exports.VueTabs)
7-
Vue.component('v-tab', module.exports.VTab)
7+
Vue.component('vue-tabs', VueTabs)
8+
Vue.component('v-tab', VTab)
89
}
910
}
10-
module.exports = VueTabsPlugin
11-
1211
// Automatic installation if Vue has been added to the global scope.
1312
if (typeof window !== 'undefined' && window.Vue) {
1413
window.Vue.use(VueTabsPlugin)
1514
}
15+
export default VueTabsPlugin

0 commit comments

Comments
 (0)