You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
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 the module key in package.json. The key points to src/index.js.
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 themodulekey 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!