I have this configuration in my webpack.config.js:
alias: {
// Not needed in this build
handlebars: false,
// https://github.com/webpack/webpack/pull/12693#issuecomment-914079083
filenamify: "filenamify/browser",
// Silently improve tree-shakeability and AMD-related errors
lodash: "lodash-es",
// Lighter jQuery version
jquery: "jquery/dist/jquery.slim.min.js",
},
In which every lodash
import is mapped to lodash-es
. This doesn't seem to be picked up by knip, which requires either ignoreDependencies
or paths
: https://knip.dev/reference/configuration#paths
Can this field be automatically picked up instead? Both for local aliases and node_module
aliases
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too