Skip to content

Commit

Permalink
📝 Add overrides guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Sep 5, 2022
1 parent b7291fd commit e98eb98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ Let [Vite](https://github.com/vitejs/vite) transform and bundle for you and no n

`browserslist-useragent-regexp` and its dependency [`useragent`](https://github.com/3rd-Eden/useragent) are no longer actively maintained. This plugin will patch and override deprecated dependencies.

Recommend to override `useragent` with my [fork](https://github.com/kingyue737/useragent) to suppress annoying [warning of deprecated dependencies](https://github.com/3rd-Eden/useragent/issues/168) in original package. For example, pnpm users can add the following code in `package.json`:
```json
// package.json
{
"pnpm": {
"overrides": {
"useragent": "npm:@kingyue/useragent@^2.4.0"
}
}
}
```

## Virtual Module

Virtual module `virtual:supported-browsers` exposes two variables returned by the following two methods of `browserslist-useragent-regexp` whose arguments are passed from plugin's [options](#options):
Expand Down

0 comments on commit e98eb98

Please sign in to comment.