Skip to content

Commit

Permalink
fix(gatsby): change browserlist to web/es5 (#29954) (#29968)
Browse files Browse the repository at this point in the history
(cherry picked from commit ba8a498)

Co-authored-by: Ward Peeters <ward@coding-tech.com>
  • Loading branch information
GatsbyJS Bot and wardpeet committed Mar 3, 2021
1 parent 03fd1cb commit 1b26dc2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/gatsby/src/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,7 @@ module.exports = async (
const [major, minor] = process.version.replace(`v`, ``).split(`.`)
config.target = `node12.13`
} else {
config.target = `browserslist:${getBrowsersList(program.directory).join(
`,`
)}`
config.target = [`web`, `es5`]
}

const isCssModule = module => module.type === `css/mini-extract`
Expand Down

0 comments on commit 1b26dc2

Please sign in to comment.