Skip to content
This repository was archived by the owner on Apr 1, 2019. It is now read-only.

Commit 61f3f2b

Browse files
author
Walker Leite
committed
doc(README): fix wrong UMD import refer #9
1 parent 6e3aa87 commit 61f3f2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ $ npm run build:umd
6969
<script src="./dist/my-cmp.min.js" charset="utf-8"></script>
7070

7171
<script type="text/javascript">
72-
Vue.component('my-cmp', window.MyCmp);
72+
Vue.component('my-cmp', window.MyCmp.default);
7373
</script>
7474
```

template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Vue.component('{{ name }}', {{ camelcase name }});
4141
<link rel="stylesheet" type="text/css" href="./dist/umd/{{ name }}.min.css">
4242

4343
<script type="text/javascript">
44-
Vue.component('{{ name }}', window.{{ camelcase name }});
44+
Vue.component('{{ name }}', window.{{ camelcase name }}.default);
4545
</script>
4646
```
4747

0 commit comments

Comments
 (0)