Skip to content

Commit

Permalink
fix(css): cssCodeSplit uses the current environment configuration (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonny-china authored Nov 1, 2024
1 parent fa50b03 commit eefe895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
}

// extract as single css bundle if no codesplit
if (!config.build.cssCodeSplit && !hasEmitted) {
if (!this.environment.config.build.cssCodeSplit && !hasEmitted) {
let extractedCss = ''
const collected = new Set<OutputChunk>()
// will be populated in order they are used by entry points
Expand Down

0 comments on commit eefe895

Please sign in to comment.