Merge pull request #4853 from aryehraber/patch-2
[5.7] Remove lodash dependency when auto registering Vue components
This commit is contained in:
commit
dc3e768d4c
|
@ -22,7 +22,7 @@ Vue.component('example-component', require('./components/ExampleComponent.vue'))
|
|||
// const files = require.context('./', true, /\.vue$/i)
|
||||
|
||||
// files.keys().map(key => {
|
||||
// return Vue.component(_.last(key.split('/')).split('.')[0], files(key))
|
||||
// return Vue.component(key.split('/').pop().split('.')[0], files(key))
|
||||
// })
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue