Skip to content

Commit dc3e768

Browse files
authored
Merge pull request laravel#4853 from aryehraber/patch-2
[5.7] Remove lodash dependency when auto registering Vue components
2 parents 7634bc6 + 7003366 commit dc3e768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Vue.component('example-component', require('./components/ExampleComponent.vue'))
2222
// const files = require.context('./', true, /\.vue$/i)
2323

2424
// files.keys().map(key => {
25-
// return Vue.component(_.last(key.split('/')).split('.')[0], files(key))
25+
// return Vue.component(key.split('/').pop().split('.')[0], files(key))
2626
// })
2727

2828
/**

0 commit comments

Comments
 (0)