From c1cafd5bc86c1090c5f2ffca20bc5a2e3254c421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20H=C3=B8egh?= Date: Fri, 13 Jan 2023 20:49:19 +0100 Subject: [PATCH] fix: remove `maintained node versions` from .browserslistrc (#1917) Fixes #1912 --- packages/dnb-design-system-portal/.browserslistrc | 2 +- packages/dnb-design-system-portal/src/docs/uilib/usage.md | 4 ++-- .../src/docs/uilib/usage/customisation/styling/polyfill.md | 2 +- packages/dnb-eufemia/.browserslistrc | 2 +- packages/dnb-eufemia/scripts/prebuild/config/postcssConfig.js | 4 +--- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/dnb-design-system-portal/.browserslistrc b/packages/dnb-design-system-portal/.browserslistrc index 23a0db0a104..d00be3fecaf 100644 --- a/packages/dnb-design-system-portal/.browserslistrc +++ b/packages/dnb-design-system-portal/.browserslistrc @@ -1,2 +1,2 @@ # Should reflect: https://eufemia.dnb.no/uilib/usage#supported-browsers-and-platforms -defaults and supports es6-module, maintained node versions +defaults and supports es6-module diff --git a/packages/dnb-design-system-portal/src/docs/uilib/usage.md b/packages/dnb-design-system-portal/src/docs/uilib/usage.md index 9a85238d50a..51997e878e2 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/usage.md +++ b/packages/dnb-design-system-portal/src/docs/uilib/usage.md @@ -40,6 +40,6 @@ Read more in the [First Steps](/uilib/usage/first-steps/) section. Eufemia uses the following config for the bundle output, defined in `.browserslistrc`: -- `defaults and supports es6-module, maintained node versions` +- `defaults and supports es6-module` -To see exactly which browsers this config supports, take a look [here](https://browsersl.ist/#q=defaults+and+supports+es6-module%2C+maintained+node+versions). +To see exactly which browsers this config supports, take a look [here](https://browsersl.ist/#q=defaults+and+supports+es6-module). diff --git a/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/styling/polyfill.md b/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/styling/polyfill.md index 215ba85e66b..2e1599104a8 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/styling/polyfill.md +++ b/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/styling/polyfill.md @@ -20,7 +20,7 @@ Use [postcss-preset-env](https://github.com/csstools/postcss-preset-env). Exampl postcssPresetEnv({ stage: 0, preserve: true, - browsers: ['defaults and supports es6-module, maintained node versions'], + browsers: ['defaults and supports es6-module'], importFrom: [require.resolve('@dnb/eufemia/style/dnb-ui-properties.css')] }) ] diff --git a/packages/dnb-eufemia/.browserslistrc b/packages/dnb-eufemia/.browserslistrc index 12fa7514c1e..cfba1d7e52d 100644 --- a/packages/dnb-eufemia/.browserslistrc +++ b/packages/dnb-eufemia/.browserslistrc @@ -1 +1 @@ -defaults and supports es6-module, maintained node versions \ No newline at end of file +defaults and supports es6-module \ No newline at end of file diff --git a/packages/dnb-eufemia/scripts/prebuild/config/postcssConfig.js b/packages/dnb-eufemia/scripts/prebuild/config/postcssConfig.js index 7229f0c6e0a..893723b0632 100644 --- a/packages/dnb-eufemia/scripts/prebuild/config/postcssConfig.js +++ b/packages/dnb-eufemia/scripts/prebuild/config/postcssConfig.js @@ -9,9 +9,7 @@ module.exports = (options) => { // preset-env processes the most of our old legacy browsers require('postcss-preset-env')({ stage: 2, - browsers: [ - 'defaults and supports es6-module, maintained node versions', - ].filter((i) => i), + browsers: ['defaults and supports es6-module'].filter((i) => i), ...options, }), ].filter((i) => i) // remove the first