Skip to content

Commit

Permalink
v1.40.5: Update of dependencies + Default Babel config targets Chrome…
Browse files Browse the repository at this point in the history
… >= 44
  • Loading branch information
birdofpreyru committed Sep 11, 2024
1 parent 6d0e85e commit ac9c78e
Show file tree
Hide file tree
Showing 7 changed files with 409 additions and 311 deletions.
16 changes: 8 additions & 8 deletions __tests__/config/babel/__snapshots__/webpack.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports[`"development" environment "noStyling" variation 1`] = `
"@babel/env",
{
"modules": false,
"targets": "defaults or chrome >= 69",
"targets": "defaults or chrome >= 44",
},
],
[
Expand Down Expand Up @@ -72,7 +72,7 @@ exports[`"development" environment "noStyling" variation 2`] = `
"@babel/env",
{
"modules": false,
"targets": "defaults or chrome >= 69",
"targets": "defaults or chrome >= 44",
},
],
[
Expand Down Expand Up @@ -124,7 +124,7 @@ exports[`"development" environment Default config 1`] = `
"@babel/env",
{
"modules": false,
"targets": "defaults or chrome >= 69",
"targets": "defaults or chrome >= 44",
},
],
[
Expand Down Expand Up @@ -182,7 +182,7 @@ exports[`"development" environment Default config 2`] = `
"@babel/env",
{
"modules": false,
"targets": "defaults or chrome >= 69",
"targets": "defaults or chrome >= 44",
},
],
[
Expand Down Expand Up @@ -221,7 +221,7 @@ exports[`"production" environment "noStyling" variation 1`] = `
"@babel/env",
{
"modules": false,
"targets": "defaults or chrome >= 69",
"targets": "defaults or chrome >= 44",
},
],
[
Expand Down Expand Up @@ -266,7 +266,7 @@ exports[`"production" environment "noStyling" variation 2`] = `
"@babel/env",
{
"modules": false,
"targets": "defaults or chrome >= 69",
"targets": "defaults or chrome >= 44",
},
],
[
Expand Down Expand Up @@ -317,7 +317,7 @@ exports[`"production" environment Default config 1`] = `
"@babel/env",
{
"modules": false,
"targets": "defaults or chrome >= 69",
"targets": "defaults or chrome >= 44",
},
],
[
Expand Down Expand Up @@ -374,7 +374,7 @@ exports[`"production" environment Default config 2`] = `
"@babel/env",
{
"modules": false,
"targets": "defaults or chrome >= 69",
"targets": "defaults or chrome >= 44",
},
],
[
Expand Down
4 changes: 2 additions & 2 deletions config-ts-src/babel/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function newBaseConfig(options: OptionsT): ConfigT {
// Leaves it to the Webpack to deal with modules.
modules: options.modules ?? false,

// Chrome 69 is the browser/WebView for Android 9 (API level 28).
targets: options.targets || 'defaults or chrome >= 69',
// Chrome 44 is the browser/WebView for Android 6.0 (API level 23).
targets: options.targets || 'defaults or chrome >= 44',
}],

// TODO: Starting from Babel 8, "automatic" will be the default runtime,
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/api/configs/babel.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ These are client-side preset options:
styling ((S)CSS processing, CSS Modules).

- `targets` - **object | string | string[]** - Compilation targets to pass into
[@babel/preset-env]. Defaults to `defaults or chrome >= 69`, which means
[@babel/preset-env]. Defaults to `defaults or chrome >= 44`, which means
«Default targets recommended by
[Browserslist](https://github.com/browserslist/browserslist) + Chrome v69+
[Browserslist](https://github.com/browserslist/browserslist) + Chrome v44+
(for compatibility with Android devices starting from
[Android 9 (SDK 28)](https://developer.android.com/tools/releases/platforms#9.0))».
[Android 6.0 (SDK 23)](https://developer.android.com/tools/releases/platforms#6.0))».

- `typescript` — **bolean** | **undefined** — Optional. Enables
TypeScript support.
Expand Down
Loading

0 comments on commit ac9c78e

Please sign in to comment.