DEV Community

Discussion on: How to use Laravel translations in JS (vue) files?

Collapse
 
aefika profile image
Luis Nicho

I think it is better to import the single function you need from lodash instead of importing the whole library: window._forEach = require('lodash/forEach');