This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
Check for package key module
in addition to main
#224
Labels
module
in addition to main
#224
Hi all!
It would be fantastic to have the ability to configure what "mainFields" to resolve similar to webpack.
Right now I have a main field that points to
lib/index.js
. The lib directory is used when I publish to npm. However, internal to my monorepo I transpile my node_modules by using themodule
key inpackage.json
. The key points tosrc/index.js
.The code in question is here:
babel-plugin-lodash/src/ModuleCache.js
Lines 19 to 21 in 3f9c8e4
Happy to provide additional context!
The text was updated successfully, but these errors were encountered: