Browse Source

Merge pull request #4853 from aryehraber/patch-2

[5.7] Remove lodash dependency when auto registering Vue components
Taylor Otwell 5 years ago
parent
commit
dc3e768d4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/js/app.js

+ 1 - 1
resources/js/app.js

@@ -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))
 // })
 
 /**