Skip to content

Commit 27839fc

Browse files
committed
fix vue component require syntax for modern vue-loader
1 parent e390e4d commit 27839fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ In our case, let's make that point the `tree-folder` component. We know the chil
13301330

13311331
``` js
13321332
beforeCreate: function () {
1333-
this.$options.components.TreeFolderContents = require('./tree-folder-contents.vue')
1333+
this.$options.components.TreeFolderContents = require('./tree-folder-contents.vue').default
13341334
}
13351335
```
13361336

0 commit comments

Comments
 (0)