Skip to content

Commit

Permalink
fix: remove maintained node versions from .browserslistrc (#1917)
Browse files Browse the repository at this point in the history
Fixes #1912
  • Loading branch information
tujoworker committed May 31, 2023
1 parent 44477b0 commit 3e9b0d8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/dnb-design-system-portal/.browserslistrc
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions packages/dnb-design-system-portal/src/docs/uilib/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Original file line number Diff line number Diff line change
Expand Up @@ -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')]
})
]
Expand Down
2 changes: 1 addition & 1 deletion packages/dnb-eufemia/.browserslistrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
defaults and supports es6-module, maintained node versions
defaults and supports es6-module
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e9b0d8

Please sign in to comment.