1
0

feat: remove polyfills

features are now supported by baseline browsers
This commit is contained in:
Dominik Pschenitschni
2024-04-14 21:40:52 +02:00
committed by konrad
parent 81bb49f83a
commit 19a760506c
8 changed files with 2 additions and 39 deletions

View File

@ -100,18 +100,7 @@ export default defineConfig(({mode}) => {
plugins: [
postcssEasings(),
postcssEasingGradients(),
postcssPresetEnv({
// Since postcss-preset-env v8.0.0 the 'enableClientSidePolyfills' option is disabled by default.
// This is the list of features that require a client side library:
// https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env#plugins-that-need-client-library
// Since we only use 'focus-within-pseudo-class' we have to force enable
// that plugin now manually in order to keep the browser support as it was.
// See also './src/polyfills.ts'
features: {
'focus-within-pseudo-class': true,
'has-pseudo-class': true,
},
}),
postcssPresetEnv(),
],
},
},