From 0c94ef62da5dc628ee039cfaba0a134609f70d78 Mon Sep 17 00:00:00 2001 From: gaoyuan Date: Fri, 28 Jun 2024 15:52:53 +0800 Subject: [PATCH] Update packages/core/src/plugins/css.ts Co-authored-by: neverland --- packages/core/src/plugins/css.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/plugins/css.ts b/packages/core/src/plugins/css.ts index af46734489..df58ba6e93 100644 --- a/packages/core/src/plugins/css.ts +++ b/packages/core/src/plugins/css.ts @@ -327,7 +327,7 @@ export const pluginCss = (): RsbuildPlugin => ({ order: 'pre', handler: async (chain, utils) => { const rule = chain.module.rule(utils.CHAIN_ID.RULE.CSS); - const config = utils.environment.config; + const { config } = utils.environment; rule.test(CSS_REGEX); await applyCSSRule({ rule,