Skip to content

Commit

Permalink
chore(crwa): dedupe browserlist query (#8621)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Choudhury <dannychoudhury@gmail.com>
  • Loading branch information
jtoar and dac09 committed Jun 16, 2023
1 parent b8dcb18 commit 3dc666d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 1 addition & 3 deletions __fixtures__/test-project/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"last 1 version"
],
"production": [
"defaults",
"not IE 11",
"not IE_Mob 11"
"defaults"
]
},
"dependencies": {
Expand Down
5 changes: 2 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ const packageJSON = require(path.join(__dirname, 'package.json'))

const TARGETS_NODE = '18.16'

// Run `npx browserslist "defaults, not IE 11, not IE_Mob 11"` to see a list
// of target browsers.
const TARGETS_BROWSERS = ['defaults', 'not IE 11', 'not IE_Mob 11']
// Run `npx browserslist "defaults"` to see a list of target browsers.
const TARGETS_BROWSERS = ['defaults']

// Warning! Recommended to specify used minor core-js version, like corejs: '3.6',
// instead of corejs: '3', since with '3' it will not be injected modules
Expand Down
4 changes: 1 addition & 3 deletions packages/create-redwood-app/templates/js/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"last 1 version"
],
"production": [
"defaults",
"not IE 11",
"not IE_Mob 11"
"defaults"
]
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/create-redwood-app/templates/ts/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"last 1 version"
],
"production": [
"defaults",
"not IE 11",
"not IE_Mob 11"
"defaults"
]
},
"dependencies": {
Expand Down

0 comments on commit 3dc666d

Please sign in to comment.