Skip to content

Commit

Permalink
fixed changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
DuCanhGH committed Sep 16, 2023
1 parent bcc1c44 commit 46b0fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/six-bananas-attack.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
feat: added `PluginOptions.browserslist`

- This defaults to `"chrome >= 56"`, same with Workbox's default.
- Note that `.browserslistrc`, `package.json.browserslist`, etc. are not supported (yet), and the only way to pass the config to `next-pwa` is `PluginOptions.browserslist`.
- Note that `.browserslistrc`, `package.json.browserslist`, etc. are not supported (yet), and the only way to pass the config to `next-pwa` is `PluginOptions.browserslist`, but you can read the file yourself, parse it, then pass it to `next-pwa`.
- This allows you to configure which browsers you want to target your workers for. This tells `next-pwa` to add `PluginOptions.workboxOptions.babelPresetEnvTargets` if that option is not defined, which means that the service worker will, too, be bundled to target these browsers, but you can change that by adding the option.

0 comments on commit 46b0fa5

Please sign in to comment.