getBrowsersList
Bug
Gatsby This repo displays a bug with Gatsby's getBrowsersList
helper while using multi-environment Browserslist configs.
See the original issue for a more in-depth explanation.
Reproduction Steps
- Clone the repo
- Install dependencies:
yarn
- Attempt a production build:
yarn build
Notice that Webpack throws an error during the build:
failed Building production JavaScript and CSS bundles - 0.005s
ERROR #98123 WEBPACK
Generating JavaScript bundles failed
Write any browsers query (for instance, `defaults`) before `not supports es6-module`
- Change
.browserslistrc
to a single-environment config like the following:
> 1%
ie 10
Notice that the build is successful.