Skip to content

Commit

Permalink
fix: override of 'build.cssCodeSplit' will not take effect if `config…
Browse files Browse the repository at this point in the history
….build.cssCodeSplit` is `undefined`
  • Loading branch information
voldikss authored and duanyunzhi committed Sep 13, 2024
1 parent 6c30640 commit c23ea0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function cssInjectedByJsPlugin({
}

if (relativeCSSInjection == true) {
if (config.build.cssCodeSplit == false) {
if (!config.build.cssCodeSplit) {
config.build.cssCodeSplit = true;
warnLog(
`[vite-plugin-css-injected-by-js] Override of 'build.cssCodeSplit' option to true, it must be true when 'relativeCSSInjection' is enabled.`
Expand Down

0 comments on commit c23ea0a

Please sign in to comment.