react-photoswipe
react-photoswipe copied to clipboard
Warning about autoprefixer browsers option
When running a project that includes react-photoswipe
, the following warning is issued in the console:
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
I believe this is because react-photoswipe
is specifying the browsers
option for autoprefixer
here: https://github.com/minhtranite/react-photoswipe/blob/master/postcss.config.js#L9. This should be removed and possibly replaced with a browserslist
key in package.json
or a .browserslistrc file.
I'm running into the same issue. @minhtranite are you still maintaining this repository?