VulcanJS / vulcan-npm

The full-stack JavaScript App Framework
https://vulcan-docs.vercel.app
MIT License
30 stars 8 forks source link

Better lodash optimization #104

Open eric-burel opened 2 years ago

eric-burel commented 2 years ago

Is your feature request related to a problem? Please describe. Lodash has a weird legacy way of exporting packages

Describe the solution you'd like Have both "lodash/get" and "import { get } from "lodash"" to work and be optmized Describe alternatives you've considered Need to test https://github.com/josteph/esbuild-plugin-lodash It should work for the named import, but we need to check that it doesn't break "import get from "lodash/get"" as well Additional context When using ESM we need to add ".js" when we import a file from the repo that is not a module itself, see https://github.com/nuxt/nuxt.js/issues/13404 And also we need to avoid importing lodash as a whole