Skip to content

Commit bac97a1

Browse files
committed
Set Vue globally in the storybook config
1 parent dbde053 commit bac97a1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.storybook/config.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { configure } from '@storybook/vue';
22

3+
// set the global Vue for using it in the vue components
4+
import Vue from 'vue'
5+
window.Vue = Vue
6+
37
// automatically import all files ending in *.stories.js
48
const req = require.context('../stories', true, /\.stories\.js$/);
59
function loadStories() {

app/core/components/PieComponent.vue

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
<script>
4040
'use strict';
41-
import Vue from 'vue'
4241
module.exports = Vue.extend({
4342
name: 'pie-chart',
4443
props: {

0 commit comments

Comments
 (0)