diff --git a/package-lock.json b/package-lock.json index 54574c7..31fbd10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vite-plugin-css-injected-by-js", - "version": "3.5.1", + "version": "3.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vite-plugin-css-injected-by-js", - "version": "3.5.1", + "version": "3.5.2", "license": "MIT", "devDependencies": { "@types/node": "^18.11.15", diff --git a/package.json b/package.json index 4cd0556..4a40a68 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-css-injected-by-js", - "version": "3.5.1", + "version": "3.5.2", "description": "A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/src/index.ts b/src/index.ts index df01560..805b8fa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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.`