Skip to content

Commit

Permalink
Update packages/core/src/plugins/css.ts
Browse files Browse the repository at this point in the history
Co-authored-by: neverland <[email protected]>
  • Loading branch information
9aoy and chenjiahan authored Jun 28, 2024
1 parent 55745b7 commit 0c94ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0c94ef6

Please sign in to comment.