-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(docs): fix typo in packageFilter code example #12851
Conversation
docs/Configuration.md
Outdated
@@ -998,7 +998,7 @@ module.exports = browserResolve.sync; | |||
By combining `defaultResolver` and `packageFilter` we can implement a `package.json` "pre-processor" that allows us to change how the default resolver will resolve modules. For example, imagine we want to use the field `"module"` if it is present, otherwise fallback to `"main"`: | |||
|
|||
```js | |||
module.exports = (path, options) => { | |||
module.exports = (request, options) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Docs above mention path
, so I would leave it here as is, but would change request
below. Just to keep it all in sync.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
Thanks! Please fix this in versioned docs as well. These live at |
Done 👍 |
Perfect 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! can you update the other versions of this doc as well?
26.x and 27.x are fine, they just consistently use |
Ah, fair point 👍 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
The current code example of
packageFilter
usage is broken and catching the typo isn't trivial without TS.Test plan
No tests needed.