From 67dd1763bb79cf6441cdd1eac15edcac72397ceb Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Mon, 15 Apr 2024 11:06:06 +0200 Subject: [PATCH] Fix PostCSS config (#29926) --- postcss.config.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index b6ea8130b5d..63aeafb36d9 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,7 +1,10 @@ -module.exports = ({ env }) => ({ +/** @type {import('postcss-load-config').Config} */ +const config = ({ env }) => ({ plugins: [ - 'postcss-preset-env', - 'autoprefixer', - env === 'production' ? 'cssnano' : '', + require('postcss-preset-env'), + require('autoprefixer'), + env === 'production' ? require('cssnano') : '', ], }); + +module.exports = config;