Change PostCSS config to allow logical properties (#31264)

This commit is contained in:
Renaud Chaput 2024-08-02 15:17:36 +02:00 committed by GitHub
parent bb3941f885
commit 99c446b7cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View file

@ -50,7 +50,6 @@
"@svgr/webpack": "^5.5.0", "@svgr/webpack": "^5.5.0",
"arrow-key-navigation": "^1.2.0", "arrow-key-navigation": "^1.2.0",
"async-mutex": "^0.5.0", "async-mutex": "^0.5.0",
"autoprefixer": "^10.4.14",
"axios": "^1.4.0", "axios": "^1.4.0",
"babel-loader": "^8.3.0", "babel-loader": "^8.3.0",
"babel-plugin-formatjs": "^10.5.1", "babel-plugin-formatjs": "^10.5.1",

View file

@ -1,8 +1,13 @@
const postcssPresetEnv = require('postcss-preset-env');
/** @type {import('postcss-load-config').Config} */ /** @type {import('postcss-load-config').Config} */
const config = ({ env }) => ({ const config = ({ env }) => ({
plugins: [ plugins: [
require('postcss-preset-env'), postcssPresetEnv({
require('autoprefixer'), features: {
'logical-properties-and-values': false
}
}),
env === 'production' ? require('cssnano') : '', env === 'production' ? require('cssnano') : '',
], ],
}); });

View file

@ -2825,7 +2825,6 @@ __metadata:
"@typescript-eslint/parser": "npm:^7.0.0" "@typescript-eslint/parser": "npm:^7.0.0"
arrow-key-navigation: "npm:^1.2.0" arrow-key-navigation: "npm:^1.2.0"
async-mutex: "npm:^0.5.0" async-mutex: "npm:^0.5.0"
autoprefixer: "npm:^10.4.14"
axios: "npm:^1.4.0" axios: "npm:^1.4.0"
babel-jest: "npm:^29.5.0" babel-jest: "npm:^29.5.0"
babel-loader: "npm:^8.3.0" babel-loader: "npm:^8.3.0"
@ -5118,7 +5117,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"autoprefixer@npm:^10.4.14, autoprefixer@npm:^10.4.19": "autoprefixer@npm:^10.4.19":
version: 10.4.19 version: 10.4.19
resolution: "autoprefixer@npm:10.4.19" resolution: "autoprefixer@npm:10.4.19"
dependencies: dependencies: