From a4ea53d746983d8dfe32157b4a4472c4f5e1bdaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B2=D1=8F=D0=B3=D0=B8=D0=BD=20=D0=94=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=D0=B0=20=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B5=D0=B2?= =?UTF-8?q?=D0=B8=D1=87?= Date: Thu, 19 Sep 2024 14:29:27 +0300 Subject: [PATCH] fix(babel-client): target browsers --- .changeset/ten-wasps-retire.md | 5 +++++ packages/arui-scripts/src/configs/babel-client.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/ten-wasps-retire.md diff --git a/.changeset/ten-wasps-retire.md b/.changeset/ten-wasps-retire.md new file mode 100644 index 00000000..29b0c15e --- /dev/null +++ b/.changeset/ten-wasps-retire.md @@ -0,0 +1,5 @@ +--- +'arui-scripts': minor +--- + +Исправление передачи таргет браузеров в babel-client diff --git a/packages/arui-scripts/src/configs/babel-client.ts b/packages/arui-scripts/src/configs/babel-client.ts index f22530fc..a7965574 100644 --- a/packages/arui-scripts/src/configs/babel-client.ts +++ b/packages/arui-scripts/src/configs/babel-client.ts @@ -7,7 +7,7 @@ const babelClientConfig = applyOverrides(['babel', 'babelClient'], { [ require.resolve('@babel/preset-env'), { - targets: { browsers }, + targets: browsers, loose: true, // Allow importing core-js in entrypoint and use browserlist to select polyfills useBuiltIns: 'entry',