projectPath: Default = process.cwd(). Where is your project located?
Sometimes, you might want to resolve modules/loaders relative to a different directory than the one the Gatsby process was started in.
Relative paths defined here will be resolved relative to process.cwd().
strict: Default = true. Controls how modules (those defined in include, as well as gatsby itself) are resolved
true: Follow pnpm's philosophy of limiting module scope. Tries to find packages in your projectPath's node_modules directory.
false: Use Node's module resolution, by using require.resolve(). Will start looking from projectPath, and walk backwards up your directory tree, looking for node_modules. Should also look in your global installs.
This PR adds the following features:
projectPath
: Default =process.cwd()
. Where is your project located?process.cwd()
.strict
: Default =true
. Controls how modules (those defined ininclude
, as well asgatsby
itself) are resolvedtrue
: Followpnpm
's philosophy of limiting module scope. Tries to find packages in yourprojectPath
'snode_modules
directory.false
: Use Node's module resolution, by usingrequire.resolve()
. Will start looking fromprojectPath
, and walk backwards up your directory tree, looking fornode_modules
. Should also look in your global installs.Fixes #3